Guard m98m99 named-program staging

This commit is contained in:
2026-06-13 08:41:48 +08:00
parent 2bb0cf9904
commit 8ff0fe25d4
3 changed files with 76 additions and 30 deletions

View File

@@ -3352,13 +3352,22 @@ for (const mainProgramErrorFixture of [
);
}
const m98m99NamedProgramNamedPath = writeInterpRegressionFile(
"m98m99/13-named-program",
const m98m99NamedProgramFiles = [
"test-named.ngc",
"test-numbered.ngc",
];
const m98m99NamedProgramDir = writeInterpRegressionFiles(
"m98m99/13-named-program",
m98m99NamedProgramFiles,
);
assertInterpRegressionStaging(
"m98m99/13-named-program",
m98m99NamedProgramFiles,
m98m99NamedProgramDir,
);
verifyExpectedOutput(
"interp_m98m99_13_named_program_named_wasm",
interp.runFile(m98m99NamedProgramNamedPath),
interp.runFile(`${m98m99NamedProgramDir}/test-named.ngc`),
[
"file_open=0",
"file_read_count=4",
@@ -3370,13 +3379,9 @@ verifyExpectedOutput(
].join("\n"),
);
const m98m99NamedProgramNumberedPath = writeInterpRegressionFile(
"m98m99/13-named-program",
"test-numbered.ngc",
);
verifyExpectedOutput(
"interp_m98m99_13_named_program_numbered_wasm",
interp.runFile(m98m99NamedProgramNumberedPath),
interp.runFile(`${m98m99NamedProgramDir}/test-numbered.ngc`),
[
"file_open=0",
"file_read_count=4",
@@ -3393,15 +3398,11 @@ const m98m99OExpressionCallPath = writeInterpRegressionFile(
"test.ngc",
);
assert.deepEqual(
[
m98m99NamedProgramNamedPath,
m98m99NamedProgramNumberedPath,
m98m99OExpressionCallPath,
],
[m98m99OExpressionCallPath],
m98m99RegressionFiles
.slice(21, 24)
.slice(23, 24)
.map((file) => `/work/interp/m98m99/${file}`),
"interp m98m99 final direct-file staging manifest drift",
"interp m98m99 final o-expression direct-file staging manifest drift",
);
const m98m99OExpressionCallRun = runWithCapturedPrints(() =>
interp.runFile(m98m99OExpressionCallPath),