Guard more INI context staging paths

This commit is contained in:
2026-06-13 12:01:44 +08:00
parent a0b0ac175a
commit d5ac4b68dd
3 changed files with 77 additions and 60 deletions

View File

@@ -7481,14 +7481,11 @@
if (subCallFromSubNgcFiles.length !== 3 || new Set(subCallFromSubNgcFiles).size !== subCallFromSubNgcFiles.length) {
throw new Error("browser_interp_sub_call_from_sub_fixture_coverage: list drift");
}
const subCallFromSubStagedNgcFiles = subCallFromSubPlan.files
.map((file) => file.sourceRel)
.filter((sourceRel) => sourceRel.endsWith(".ngc"))
.map((sourceRel) => sourceRel.replace("tests/interp/sub-call-from-sub/", ""))
.sort();
if (subCallFromSubStagedNgcFiles.join(",") !== subCallFromSubNgcFiles.join(",")) {
throw new Error("browser_interp_sub_call_from_sub_staging_manifest: list drift");
}
assertInterpIniContextNgcStaging(
"sub-call-from-sub",
subCallFromSubNgcFiles,
subCallFromSubPlan,
);
verifyExpectedOutput(
"browser_interp_sub_call_from_sub",
interp.runFileWithIni(
@@ -7512,14 +7509,11 @@
if (sequenceNumberNgcFiles.length !== 2 || new Set(sequenceNumberNgcFiles).size !== sequenceNumberNgcFiles.length) {
throw new Error("browser_interp_sequence_number_fixture_coverage: list drift");
}
const sequenceNumberStagedNgcFiles = sequenceNumberPlan.files
.map((file) => file.sourceRel)
.filter((sourceRel) => sourceRel.endsWith(".ngc"))
.map((sourceRel) => sourceRel.replace("tests/interp/sequence-number/", ""))
.sort();
if (sequenceNumberStagedNgcFiles.join(",") !== sequenceNumberNgcFiles.join(",")) {
throw new Error("browser_interp_sequence_number_staging_manifest: list drift");
}
assertInterpIniContextNgcStaging(
"sequence-number",
sequenceNumberNgcFiles,
sequenceNumberPlan,
);
verifyExpectedOutput(
"browser_interp_sequence_number",
interp.runFileWithIni(
@@ -7545,14 +7539,11 @@
if (nestedSubErrorNgcFiles.length !== 2 || new Set(nestedSubErrorNgcFiles).size !== nestedSubErrorNgcFiles.length) {
throw new Error("browser_interp_nested_sub_error_fixture_coverage: list drift");
}
const nestedSubErrorStagedNgcFiles = nestedSubErrorPlan.files
.map((file) => file.sourceRel)
.filter((sourceRel) => sourceRel.endsWith(".ngc"))
.map((sourceRel) => sourceRel.replace("tests/interp/nested-sub-error/", ""))
.sort();
if (nestedSubErrorStagedNgcFiles.join(",") !== nestedSubErrorNgcFiles.join(",")) {
throw new Error("browser_interp_nested_sub_error_staging_manifest: list drift");
}
assertInterpIniContextNgcStaging(
"nested-sub-error",
nestedSubErrorNgcFiles,
nestedSubErrorPlan,
);
verifyExpectedOutput(
"browser_interp_nested_sub_error",
interp.runFileWithIni(
@@ -7581,14 +7572,11 @@
if (nestedSubInFileErrorNgcFiles.length !== 2 || new Set(nestedSubInFileErrorNgcFiles).size !== nestedSubInFileErrorNgcFiles.length) {
throw new Error("browser_interp_nested_sub_in_file_error_fixture_coverage: list drift");
}
const nestedSubInFileErrorStagedNgcFiles = nestedSubInFileErrorPlan.files
.map((file) => file.sourceRel)
.filter((sourceRel) => sourceRel.endsWith(".ngc"))
.map((sourceRel) => sourceRel.replace("tests/interp/nested-sub-in-file-error/", ""))
.sort();
if (nestedSubInFileErrorStagedNgcFiles.join(",") !== nestedSubInFileErrorNgcFiles.join(",")) {
throw new Error("browser_interp_nested_sub_in_file_error_staging_manifest: list drift");
}
assertInterpIniContextNgcStaging(
"nested-sub-in-file-error",
nestedSubInFileErrorNgcFiles,
nestedSubInFileErrorPlan,
);
verifyExpectedOutput(
"browser_interp_nested_sub_in_file_error",
interp.runFileWithIni(