]> Cypherpunks repositories - gostls13.git/commitdiff
misc/cgo/test: log error value in testSigprocmask
authorIan Lance Taylor <iant@golang.org>
Wed, 25 Apr 2018 19:50:58 +0000 (12:50 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 25 Apr 2018 20:26:39 +0000 (20:26 +0000)
The test has been flaky, probably due to EAGAIN, but let's find out
for sure.

Updates #25078

Change-Id: I5a5b14bfc52cb43f25f07ca7d207b61ae9d4f944
Reviewed-on: https://go-review.googlesource.com/109359
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
misc/cgo/test/sigprocmask.go

index 39b658e96c3c0c4c9ba3afb5b794951333b523ec..e2b939f05e2b4b61166f180ccd4548549765e67a 100644 (file)
@@ -32,7 +32,7 @@ func IntoGoAndBack() {
 
 func testSigprocmask(t *testing.T) {
        if r := C.RunSigThread(); r != 0 {
-               t.Error("pthread_create/pthread_join failed")
+               t.Errorf("pthread_create/pthread_join failed: %d", r)
        }
        if !blocked {
                t.Error("Go runtime unblocked SIGIO")