Guard final g10 staging paths

This commit is contained in:
2026-06-13 06:57:47 +08:00
parent f8177efac5
commit bf17469f6f
3 changed files with 104 additions and 89 deletions

View File

@@ -8265,6 +8265,13 @@
"test.ngc",
"test.tbl",
]);
const g10FinalStagedNgcFiles = [
`${g10L20WhileActiveDir}/test.ngc`,
`${g10WithG92Dir}/test.ngc`,
].map((path) => path.replace("/work/browser-interp/g10/", ""));
if (g10FinalStagedNgcFiles.join(",") !== g10RegressionFiles.slice(3, 5).join(",")) {
throw new Error("browser_interp_g10_final_staging_manifest: list drift");
}
verifyExpectedOutput(
"browser_interp_g10_with_g92",
interp.runFileWithIni(`${g10WithG92Dir}/test.ngc`, `${g10WithG92Dir}/test.ini`),

View File

@@ -3152,6 +3152,16 @@ verifyExpectedOutput(
);
const g10WithG92Dir = writeG10RegressionFiles("g10-with-g92", ["test.ngc", "test.tbl"]);
assert.deepEqual(
[
`${g10L20WhileActiveDir}/test.ngc`,
`${g10WithG92Dir}/test.ngc`,
],
g10RegressionFiles
.slice(3, 5)
.map((file) => `/work/interp/g10/${file}`),
"interp g10 final staging manifest drift",
);
verifyExpectedOutput(
"interp_g10_with_g92_wasm",
interp.runFileWithIni(`${g10WithG92Dir}/test.ngc`, `${g10WithG92Dir}/test.ini`),