diff options
| author | Rob Pike <r@golang.org> | 2013-08-21 14:00:45 +1000 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2013-08-21 14:00:45 +1000 |
| commit | f578726de1d75b5816904972b0a29c1a5fdbda24 (patch) | |
| tree | 04e43ce4ce565cb1535669fd5b7db111bf86757c /src/pkg/path/path_test.go | |
| parent | a83b17c0b741263e7f3ad5ebb2e3aba27751c770 (diff) | |
| download | go-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/path_test.go')
| -rw-r--r-- | src/pkg/path/path_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pkg/path/path_test.go b/src/pkg/path/path_test.go index 69caa80e4f..13b585223f 100644 --- a/src/pkg/path/path_test.go +++ b/src/pkg/path/path_test.go @@ -72,7 +72,12 @@ func TestClean(t *testing.T) { t.Errorf("Clean(%q) = %q, want %q", test.result, s, test.result) } } +} +func TestCleanMallocs(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 |
