From f7f19069894ad16f3722ffe78ca6716069c256b0 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 11 Dec 2023 09:21:19 +0100 Subject: [PATCH] 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 --- tests/test_std.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_std.js b/tests/test_std.js index 672ca50..41babd4 100644 --- a/tests/test_std.js +++ b/tests/test_std.js @@ -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()