From 80cc2f541628f91f7635272ec87147bd90509a96 Mon Sep 17 00:00:00 2001 From: Laytan Laats Date: Tue, 17 Sep 2024 23:28:29 +0200 Subject: [PATCH] fix it more --- 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 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()) {