Skip to content

Commit

Permalink
fix it more
Browse files Browse the repository at this point in the history
  • Loading branch information
laytan committed Sep 17, 2024
1 parent 9973e02 commit 80cc2f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/core/sys/posix/structs.odin
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 80cc2f5

Please sign in to comment.