Guard oword-unwind staging manifest

This commit is contained in:
2026-06-12 23:21:49 +08:00
parent 62a5a70ac3
commit 3555b47c91
3 changed files with 89 additions and 0 deletions

View File

@@ -7344,6 +7344,21 @@
);
const owordUnwindPlan = await stageInterpIniContext(interp, "oword-unwind");
const owordUnwindNgcFiles = [
"fail.ngc",
"test.ngc",
];
if (owordUnwindNgcFiles.length !== 2 || new Set(owordUnwindNgcFiles).size !== owordUnwindNgcFiles.length) {
throw new Error("browser_interp_oword_unwind_fixture_coverage: list drift");
}
const owordUnwindStagedNgcFiles = owordUnwindPlan.files
.map((file) => file.sourceRel)
.filter((sourceRel) => sourceRel.endsWith(".ngc"))
.map((sourceRel) => sourceRel.replace("tests/interp/oword-unwind/", ""))
.sort();
if (owordUnwindStagedNgcFiles.join(",") !== owordUnwindNgcFiles.join(",")) {
throw new Error("browser_interp_oword_unwind_staging_manifest: list drift");
}
verifyExpectedOutput(
"browser_interp_oword_unwind",
interp.runFileWithIniContinueOnError(

View File

@@ -2242,6 +2242,24 @@ verifyExpectedOutput(
);
const owordUnwindPlan = stageInterpIniContext("oword-unwind");
const owordUnwindNgcFiles = [
"fail.ngc",
"test.ngc",
];
assert.deepEqual(
owordUnwindNgcFiles,
interpRegressionNgcFilesRecursive("oword-unwind"),
"interp oword-unwind fixture coverage drift",
);
assert.deepEqual(
owordUnwindPlan.files
.map((file) => file.sourceRel)
.filter((sourceRel) => sourceRel.endsWith(".ngc"))
.map((sourceRel) => sourceRel.replace("tests/interp/oword-unwind/", ""))
.sort(),
owordUnwindNgcFiles,
"interp oword-unwind staging manifest drift",
);
verifyExpectedOutput(
"interp_oword_unwind_wasm",
interp.runFileWithIniContinueOnError(