Guard oword/namedparam staging paths

This commit is contained in:
2026-06-13 07:27:23 +08:00
parent c85dec42c4
commit c97f85237f
3 changed files with 121 additions and 0 deletions

View File

@@ -6321,6 +6321,18 @@
"oword-bug315",
"test.ngc",
);
const owordBug315NgcFiles = [
"test.ngc",
];
if (owordBug315NgcFiles.length !== 1 || new Set(owordBug315NgcFiles).size !== owordBug315NgcFiles.length) {
throw new Error("browser_interp_oword_bug315_fixture_coverage: list drift");
}
const owordBug315StagedNgcFiles = [
owordBug315Path,
].map((path) => path.replace("/work/browser-interp/oword-bug315/", ""));
if (owordBug315StagedNgcFiles.join(",") !== owordBug315NgcFiles.join(",")) {
throw new Error("browser_interp_oword_bug315_staging_manifest: list drift");
}
verifyExpectedOutput(
"browser_interp_oword_bug315",
interp.runFile(owordBug315Path),
@@ -6340,6 +6352,18 @@
"oword-bug315-p2",
"test.ngc",
);
const owordBug315P2NgcFiles = [
"test.ngc",
];
if (owordBug315P2NgcFiles.length !== 1 || new Set(owordBug315P2NgcFiles).size !== owordBug315P2NgcFiles.length) {
throw new Error("browser_interp_oword_bug315_p2_fixture_coverage: list drift");
}
const owordBug315P2StagedNgcFiles = [
owordBug315P2Path,
].map((path) => path.replace("/work/browser-interp/oword-bug315-p2/", ""));
if (owordBug315P2StagedNgcFiles.join(",") !== owordBug315P2NgcFiles.join(",")) {
throw new Error("browser_interp_oword_bug315_p2_staging_manifest: list drift");
}
verifyExpectedOutput(
"browser_interp_oword_bug315_p2",
interp.runFile(owordBug315P2Path),
@@ -6581,6 +6605,18 @@
"namedparam-bug424",
"test.ngc",
);
const namedparamBug424NgcFiles = [
"test.ngc",
];
if (namedparamBug424NgcFiles.length !== 1 || new Set(namedparamBug424NgcFiles).size !== namedparamBug424NgcFiles.length) {
throw new Error("browser_interp_namedparam_bug424_fixture_coverage: list drift");
}
const namedparamBug424StagedNgcFiles = [
namedparamBug424Path,
].map((path) => path.replace("/work/browser-interp/namedparam-bug424/", ""));
if (namedparamBug424StagedNgcFiles.join(",") !== namedparamBug424NgcFiles.join(",")) {
throw new Error("browser_interp_namedparam_bug424_staging_manifest: list drift");
}
verifyExpectedOutput(
"browser_interp_namedparam_bug424",
interp.runFile(namedparamBug424Path),