aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/path/filepath
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2013-08-21 14:00:45 +1000
committerRob Pike <r@golang.org>2013-08-21 14:00:45 +1000
commitf578726de1d75b5816904972b0a29c1a5fdbda24 (patch)
tree04e43ce4ce565cb1535669fd5b7db111bf86757c /src/pkg/path/filepath
parenta83b17c0b741263e7f3ad5ebb2e3aba27751c770 (diff)
downloadgo-f578726de1d75b5816904972b0a29c1a5fdbda24.tar.xz
all: protect alloc count tests by -testing.short
Update #5000 Should reduce the flakiness a little. Malloc counting is important to general testing but not to the build dashboard, which uses -short. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/12866047
Diffstat (limited to 'src/pkg/path/filepath')
-rw-r--r--src/pkg/path/filepath/path_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pkg/path/filepath/path_test.go b/src/pkg/path/filepath/path_test.go
index b1cdcee4ce..bbb4e16f2a 100644
--- a/src/pkg/path/filepath/path_test.go
+++ b/src/pkg/path/filepath/path_test.go
@@ -107,6 +107,9 @@ func TestClean(t *testing.T) {
}
}
+ if testing.Short() {
+ t.Skip("skipping malloc count in short mode")
+ }
if runtime.GOMAXPROCS(0) > 1 {
t.Log("skipping AllocsPerRun checks; GOMAXPROCS>1")
return