Skip to content

Commit

Permalink
check nonzero
Browse files Browse the repository at this point in the history
  • Loading branch information
FGasper committed Feb 16, 2024
1 parent 4a6a49a commit 0ba3b14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_std.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ function test_os_exec()
os.kill(pid, os.SIGQUIT);
[ret, status] = os.waitpid(pid, 0);
assert(ret, pid);
assert(status !== 0, true, `expect nonzero exit code (got ${status})`);
assert(status & 0x7f, os.SIGQUIT);
}

Expand Down

0 comments on commit 0ba3b14

Please sign in to comment.