]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: skip TestTimePprof if nanotime calls libc
authorIan Lance Taylor <iant@golang.org>
Wed, 24 Nov 2021 00:30:17 +0000 (16:30 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 24 Nov 2021 05:36:54 +0000 (05:36 +0000)
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>

src/runtime/crash_test.go

index 91a1a41ed53a7a20f935e35f68e82621c2298b73..1c28e47ac3d792c6a506abcb3b782d6380d4a150 100644 (file)
@@ -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")