mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-03 03:32:37 +00:00
Check for EINTR in sys/posix test
This commit is contained in:
@@ -63,6 +63,9 @@ execute_struct_checks :: proc(t: ^testing.T) {
|
||||
waiting: for {
|
||||
status: i32
|
||||
wpid := posix.waitpid(pid, &status, {})
|
||||
if status == posix.EINTR {
|
||||
continue
|
||||
}
|
||||
if !testing.expectf(t, wpid != -1, "waitpid() failure: %v", posix.strerror()) {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user