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: https://github.com/quickjs-ng/quickjs/issues/184
This commit is contained in:
Ben Noordhuis 2023-12-11 09:21:19 +01:00 committed by GitHub
parent 315096461b
commit f7f1906989
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -243,10 +243,10 @@ function test_os_exec()
pid = os.exec(["cat"], { block: false } );
assert(pid >= 0);
os.kill(pid, os.SIGQUIT);
os.kill(pid, os.SIGTERM);
[ret, status] = os.waitpid(pid, 0);
assert(ret, pid);
assert(status & 0x7f, os.SIGQUIT);
assert(status & 0x7f, os.SIGTERM);
}
function test_timer()