From dc29dd0f13b153912241177fc8590ac619b2caee Mon Sep 17 00:00:00 2001 From: akcorca Date: Sat, 5 Sep 2026 11:42:20 +0900 Subject: [PATCH] test: retain work-limit evidence after diagnostic timeout --- test/check-execution-limits.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/check-execution-limits.mjs b/test/check-execution-limits.mjs index bb1e9b4..fb22c90 100644 --- a/test/check-execution-limits.mjs +++ b/test/check-execution-limits.mjs @@ -97,9 +97,9 @@ finally { fs.close(); } if (test.success) assert.equal(result.exitCode, 0, test.name); else { assert.notEqual(result.exitCode, 0, test.name); - // Deadline expiry also refuses stderr I/O; the execution event still - // identifies that failure even when no diagnostic can be delivered. - if (result.failureCode !== "ETIMEDOUT") + // Deadline expiry can refuse diagnostics for an earlier work limit too. + // The execution event retains the original structured failure code. + if (result.failureCode !== "ETIMEDOUT" && result.failureCode !== "E2BIG") assert.match(result.stderr, /limit|deadline/, test.name); } }