Disable flaky test on Cygwin (#202)
Unclear why sending a SIGQUIT signal sometimes works and sometimes doesn't but it's probably some kind of race condition in Cygwin's emulation layer. Fixes: https://github.com/quickjs-ng/quickjs/issues/184
This commit is contained in:
parent
de44a37ae9
commit
40771c9103
1 changed files with 6 additions and 1 deletions
|
@ -2,6 +2,7 @@ import * as std from "std";
|
|||
import * as os from "os";
|
||||
|
||||
const isWin = os.platform === 'win32';
|
||||
const isCygwin = os.platform === 'cygwin';
|
||||
|
||||
function assert(actual, expected, message) {
|
||||
if (arguments.length == 1)
|
||||
|
@ -246,8 +247,12 @@ function test_os_exec()
|
|||
os.kill(pid, os.SIGTERM);
|
||||
[ret, status] = os.waitpid(pid, 0);
|
||||
assert(ret, pid);
|
||||
// Flaky on cygwin for unclear reasons, see
|
||||
// https://github.com/quickjs-ng/quickjs/issues/184
|
||||
if (!isCygwin) {
|
||||
assert(status & 0x7f, os.SIGTERM);
|
||||
}
|
||||
}
|
||||
|
||||
function test_timer()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue