Skip to content

Commit 47db3bb

Browse files
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 <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]> TryBot-Result: Go Bot <[email protected]>
1 parent 1ac45e0 commit 47db3bb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/runtime/crash_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,13 @@ func TestBadTraceback(t *testing.T) {
714714
}
715715

716716
func TestTimePprof(t *testing.T) {
717+
// This test is unreliable on any system in which nanotime
718+
// calls into libc.
719+
switch runtime.GOOS {
720+
case "aix", "darwin", "openbsd", "solaris":
721+
t.Skipf("skipping on %s because nanotime calls libc", runtime.GOOS)
722+
}
723+
717724
// Pass GOTRACEBACK for issue #41120 to try to get more
718725
// information on timeout.
719726
fn := runTestProg(t, "testprog", "TimeProf", "GOTRACEBACK=crash")

0 commit comments

Comments
 (0)