aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaytan Laats <laytanlaats@hotmail.com>2024-09-17 23:19:20 +0200
committerLaytan Laats <laytanlaats@hotmail.com>2024-09-17 23:19:20 +0200
commit9973e0255c5397ff98fa044b1e5ce6a69ab0aa56 (patch)
tree39af228118defd4c2e4c931a232198bf276e8b44
parent4dd3248507da5d1562a22ed0d295a07691f07cd1 (diff)
fix error interrupt error check
-rw-r--r--tests/core/sys/posix/structs.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/core/sys/posix/structs.odin b/tests/core/sys/posix/structs.odin
index 95b6258f4..1bc1af70f 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 == posix.EINTR {
+ if status == -1 && posix.errno() == .EINTR {
continue
}
if !testing.expectf(t, wpid != -1, "waitpid() failure: %v", posix.strerror()) {