mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +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 {
|
waiting: for {
|
||||||
status: i32
|
status: i32
|
||||||
wpid := posix.waitpid(pid, &status, {})
|
wpid := posix.waitpid(pid, &status, {})
|
||||||
|
if status == posix.EINTR {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if !testing.expectf(t, wpid != -1, "waitpid() failure: %v", posix.strerror()) {
|
if !testing.expectf(t, wpid != -1, "waitpid() failure: %v", posix.strerror()) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user