Skip to content

Commit 364d4d2

Browse files
committed
chore: remove unused for loop in test
1 parent 29a4f6b commit 364d4d2

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

unix/syscall_linux_test.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -460,22 +460,6 @@ func TestPselectWithSigmask(t *testing.T) {
460460
}
461461
break
462462
}
463-
464-
for {
465-
var sigmask unix.Sigset_t
466-
sigmask.Val[0] |= 1 << (uint(unix.SIGUSR1) - 1)
467-
n, err := unix.Pselect(0, nil, nil, nil, &unix.Timespec{Sec: 0, Nsec: 0}, &sigmask)
468-
if err == unix.EINTR {
469-
t.Logf("Pselect interrupted")
470-
continue
471-
} else if err != nil {
472-
t.Fatalf("Pselect: %v", err)
473-
}
474-
if n != 0 {
475-
t.Fatalf("Pselect: got %v ready file descriptors, expected 0", n)
476-
}
477-
break
478-
}
479463
}
480464

481465
func TestSchedSetaffinity(t *testing.T) {

0 commit comments

Comments
 (0)