From: Ian Lance Taylor Date: Wed, 25 Apr 2018 19:50:58 +0000 (-0700) Subject: misc/cgo/test: log error value in testSigprocmask X-Git-Tag: go1.11beta1~679 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9c9ed9aa9dae40b97348979cc4b13f6b26624a7e;p=gostls13.git misc/cgo/test: log error value in testSigprocmask 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 Reviewed-by: Bryan C. Mills --- diff --git a/misc/cgo/test/sigprocmask.go b/misc/cgo/test/sigprocmask.go index 39b658e96c..e2b939f05e 100644 --- a/misc/cgo/test/sigprocmask.go +++ b/misc/cgo/test/sigprocmask.go @@ -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")