mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: remove stray errno check from TestSignalM
CL 206078 introduced a stray errno check that was always false. This CL removes it.
Updates #35276
Change-Id: I6996bb595d347fe81752786a3d83d3432735c9cb
GitHub-Last-Rev: e026e71b16
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>
This commit is contained in:
parent
6ba0be1639
commit
2bde3c13f6
1 changed files with 0 additions and 4 deletions
|
|
@ -326,13 +326,9 @@ func TestSignalM(t *testing.T) {
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
go func() {
|
go func() {
|
||||||
runtime.LockOSThread()
|
runtime.LockOSThread()
|
||||||
var errno int32
|
|
||||||
want, got = runtime.WaitForSigusr1(r, w, func(mp *runtime.M) {
|
want, got = runtime.WaitForSigusr1(r, w, func(mp *runtime.M) {
|
||||||
ready <- mp
|
ready <- mp
|
||||||
})
|
})
|
||||||
if errno != 0 {
|
|
||||||
t.Error(syscall.Errno(errno))
|
|
||||||
}
|
|
||||||
runtime.UnlockOSThread()
|
runtime.UnlockOSThread()
|
||||||
wg.Done()
|
wg.Done()
|
||||||
}()
|
}()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue