Control: tags -1 + patch
On Tue, 19 May 2026 11:42:44 +0200 =?UTF-8?B?SsOpcsOpbXkgTGFs?=
<[email protected]> wrote:
The failure is
../tests/test_std.js:279: Error: assertion failed: got |0|, expected |15|
and comes from the last assertion in that test:
pid = os.exec(["cat"], { block: false } );
assert(pid >= 0);
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);
}
So it probably is just a flaky test.
I thought as much, and prepared the attached patch. But since I cannot
reproduce the failure, I cannot meaningfully test it...
Cheers,
--
Stéphane
From: Stéphane Glondu <[email protected]>
Date: Sat, 16 May 2026 09:04:05 +0100
X-Dgit-Generated: 0.14.0-2.1 c33c93b066f2b425a79c7c7099dc2588d57a9fb8
Subject: Avoid flaky test on Hurd
---
diff --git a/tests/test_std.js b/tests/test_std.js
index 443b699..0c5d9e4 100644
--- a/tests/test_std.js
+++ b/tests/test_std.js
@@ -4,6 +4,7 @@ import { assert } from "./assert.js";
const isWin = os.platform === 'win32';
const isCygwin = os.platform === 'cygwin';
+const isHurd = os.platform === 'hurd';
function test_printf()
@@ -275,7 +276,7 @@ function test_os_exec()
assert(ret, pid);
// Flaky on cygwin for unclear reasons, see
// https://github.com/quickjs-ng/quickjs/issues/184
- if (!isCygwin) {
+ if (!isCygwin && !isHurd) {
assert(status & 0x7f, os.SIGTERM);
}
}
--
Pkg-javascript-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel