From 9c9ed9aa9dae40b97348979cc4b13f6b26624a7e Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 25 Apr 2018 12:50:58 -0700 Subject: [PATCH] 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 --- misc/cgo/test/sigprocmask.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- 2.48.1