aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFeoramund <161657516+Feoramund@users.noreply.github.com>2024-09-15 23:58:03 -0400
committerFeoramund <161657516+Feoramund@users.noreply.github.com>2024-09-15 23:58:03 -0400
commit16ef59700b68989beff48039a450ef6153b2e6af (patch)
tree6ce699dd26cd5e2ac5c31ce892a66b67f2887d57 /tests
parentd38f5ffb49733b5084b9419412acf9381e3073d4 (diff)
Check for `EINTR` in `sys/posix` test
Diffstat (limited to 'tests')
-rw-r--r--tests/core/sys/posix/structs.odin3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/core/sys/posix/structs.odin b/tests/core/sys/posix/structs.odin
index bdb1c24e3..95b6258f4 100644
--- a/tests/core/sys/posix/structs.odin
+++ b/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
}