Skip to content

Commit f7f1906

Browse files
authored
Switch to SIGTERM in child process test (#203)
The hope is that switching from SIGQUIT to SIGTERM will resolve the test's flakiness on Cygwin. Refs: #184
1 parent 3150964 commit f7f1906

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_std.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,10 @@ function test_os_exec()
243243

244244
pid = os.exec(["cat"], { block: false } );
245245
assert(pid >= 0);
246-
os.kill(pid, os.SIGQUIT);
246+
os.kill(pid, os.SIGTERM);
247247
[ret, status] = os.waitpid(pid, 0);
248248
assert(ret, pid);
249-
assert(status & 0x7f, os.SIGQUIT);
249+
assert(status & 0x7f, os.SIGTERM);
250250
}
251251

252252
function test_timer()

0 commit comments

Comments
 (0)