diff options
author | Ian Lance Taylor <iant@golang.org> | 2021-11-23 16:30:17 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-11-24 05:36:54 +0000 |
commit | 47db3bb443774c0b0df2cab188aa3d76b361dca2 (patch) | |
tree | 77af7129159073fd07a6807bb60fa5b3a6710213 /src/runtime | |
parent | 1ac45e026b2cbae91e3495e2cc6e93b6d505b4f4 (diff) | |
download | go-47db3bb443774c0b0df2cab188aa3d76b361dca2.tar.gz go-47db3bb443774c0b0df2cab188aa3d76b361dca2.zip |
runtime: skip TestTimePprof if nanotime calls libc
Fixes #43118
Change-Id: I499bf335904e2b72a2a8876d0368fff5e69aa7fa
Reviewed-on: https://go-review.googlesource.com/c/go/+/366759
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/runtime')
-rw-r--r-- | src/runtime/crash_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/runtime/crash_test.go b/src/runtime/crash_test.go index 91a1a41ed5..1c28e47ac3 100644 --- a/src/runtime/crash_test.go +++ b/src/runtime/crash_test.go @@ -714,6 +714,13 @@ func TestBadTraceback(t *testing.T) { } func TestTimePprof(t *testing.T) { + // This test is unreliable on any system in which nanotime + // calls into libc. + switch runtime.GOOS { + case "aix", "darwin", "openbsd", "solaris": + t.Skipf("skipping on %s because nanotime calls libc", runtime.GOOS) + } + // Pass GOTRACEBACK for issue #41120 to try to get more // information on timeout. fn := runTestProg(t, "testprog", "TimeProf", "GOTRACEBACK=crash") |