ports/lang/quickjs/patches/patch-tests_test_std_js

19 lines
484 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
This test waits forever if the process ignores SIGQUIT.
Index: tests/test_std.js
--- tests/test_std.js.orig
+++ tests/test_std.js
@@ -252,10 +252,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()