]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove stray errno check from TestSignalM
authorTom Thorogood <me+google@tomthorogood.co.uk>
Sun, 17 Nov 2019 12:33:22 +0000 (12:33 +0000)
committerIan Lance Taylor <iant@golang.org>
Mon, 18 Nov 2019 05:26:46 +0000 (05:26 +0000)
CL 206078 introduced a stray errno check that was always false. This CL removes it.

Updates #35276

Change-Id: I6996bb595d347fe81752786a3d83d3432735c9cb
GitHub-Last-Rev: e026e71b16c8532ad707a0b43b4f02c7a366257e
GitHub-Pull-Request: golang/go#35650
Reviewed-on: https://go-review.googlesource.com/c/go/+/207577
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/crash_unix_test.go

index e494dcb988b481109ed4282949a1a41c9976a06a..1420b3206acd19497ae23658c712cba3ad278ecb 100644 (file)
@@ -326,13 +326,9 @@ func TestSignalM(t *testing.T) {
        wg.Add(1)
        go func() {
                runtime.LockOSThread()
-               var errno int32
                want, got = runtime.WaitForSigusr1(r, w, func(mp *runtime.M) {
                        ready <- mp
                })
-               if errno != 0 {
-                       t.Error(syscall.Errno(errno))
-               }
                runtime.UnlockOSThread()
                wg.Done()
        }()