Skip to content

Commit 9630f3b

Browse files
committed
test(fuzzer): skip windows SIGINT stop test
1 parent 6f9783e commit 9630f3b

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

packages/fuzzer/libafl_runtime.test.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,10 @@ describe("LibAFL runtime", () => {
260260
},
261261
);
262262

263-
it("rejects thrown stop callbacks instead of panicking through Rust", () => {
264-
const script = `
263+
(process.platform === "win32" ? it.skip : it)(
264+
"rejects thrown stop callbacks instead of panicking through Rust",
265+
() => {
266+
const script = `
265267
const addon = require(${JSON.stringify(nativeAddonPath())});
266268
addon.registerCoverageMap(Buffer.alloc(${1 << 20}));
267269
addon.registerNewCounters(0, 512);
@@ -291,13 +293,14 @@ describe("LibAFL runtime", () => {
291293
setTimeout(() => process.exit(4), 1000);
292294
`;
293295

294-
const result = spawnSync(process.execPath, ["-e", script], {
295-
encoding: "utf8",
296-
timeout: 5000,
297-
});
296+
const result = spawnSync(process.execPath, ["-e", script], {
297+
encoding: "utf8",
298+
timeout: 5000,
299+
});
298300

299-
expect(result.status).toBe(0);
300-
});
301+
expect(result.status).toBe(0);
302+
},
303+
);
301304

302305
it("records compare feedback in the shared native map", async () => {
303306
addon.clearCompareFeedbackMap();

0 commit comments

Comments
 (0)