Skip to content

Commit

Permalink
chore: remove unused for loop in test
Browse files Browse the repository at this point in the history
  • Loading branch information
mauri870 committed Jul 18, 2023
1 parent 29a4f6b commit 364d4d2
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions unix/syscall_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -460,22 +460,6 @@ func TestPselectWithSigmask(t *testing.T) {
}
break
}

for {
var sigmask unix.Sigset_t
sigmask.Val[0] |= 1 << (uint(unix.SIGUSR1) - 1)
n, err := unix.Pselect(0, nil, nil, nil, &unix.Timespec{Sec: 0, Nsec: 0}, &sigmask)
if err == unix.EINTR {
t.Logf("Pselect interrupted")
continue
} else if err != nil {
t.Fatalf("Pselect: %v", err)
}
if n != 0 {
t.Fatalf("Pselect: got %v ready file descriptors, expected 0", n)
}
break
}
}

func TestSchedSetaffinity(t *testing.T) {
Expand Down

0 comments on commit 364d4d2

Please sign in to comment.