Browse Source

Check for `EINTR` in `sys/posix` test

Feoramund 11 months ago
parent
commit
16ef59700b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tests/core/sys/posix/structs.odin

+ 3 - 0
tests/core/sys/posix/structs.odin

@@ -63,6 +63,9 @@ execute_struct_checks :: proc(t: ^testing.T) {
 		waiting: for {
 			status: i32
 			wpid := posix.waitpid(pid, &status, {})
+			if status == posix.EINTR {
+				continue
+			}
 			if !testing.expectf(t, wpid != -1, "waitpid() failure: %v", posix.strerror()) {
 				return false
 			}