diff --git a/tests/core/sys/posix/structs.odin b/tests/core/sys/posix/structs.odin index 1bc1af70f..a4e9c8d90 100644 --- a/tests/core/sys/posix/structs.odin +++ b/tests/core/sys/posix/structs.odin @@ -63,7 +63,7 @@ execute_struct_checks :: proc(t: ^testing.T) { waiting: for { status: i32 wpid := posix.waitpid(pid, &status, {}) - if status == -1 && posix.errno() == .EINTR { + if wpid == -1 && posix.errno() == .EINTR { continue } if !testing.expectf(t, wpid != -1, "waitpid() failure: %v", posix.strerror()) {