From 9973e0255c5397ff98fa044b1e5ce6a69ab0aa56 Mon Sep 17 00:00:00 2001 From: Laytan Laats Date: Tue, 17 Sep 2024 23:19:20 +0200 Subject: [PATCH] fix error interrupt error check --- tests/core/sys/posix/structs.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) {