1
0
mirror of https://github.com/golang/go synced 2024-11-17 12:14:47 -07:00

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>
This commit is contained in:
Ian Lance Taylor 2021-11-23 16:30:17 -08:00
parent 1ac45e026b
commit 47db3bb443

View File

@ -714,6 +714,13 @@ func TestBadTraceback(t *testing.T) {
} }
func TestTimePprof(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 // Pass GOTRACEBACK for issue #41120 to try to get more
// information on timeout. // information on timeout.
fn := runTestProg(t, "testprog", "TimeProf", "GOTRACEBACK=crash") fn := runTestProg(t, "testprog", "TimeProf", "GOTRACEBACK=crash")