瀏覽代碼

fix it more

Laytan Laats 1 年之前
父節點
當前提交
80cc2f5416
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tests/core/sys/posix/structs.odin

+ 1 - 1
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()) {