Guard INI subroutine staging manifests

This commit is contained in:
2026-06-12 23:11:21 +08:00
parent b84dfbdcf0
commit 3b0e8df639
3 changed files with 137 additions and 0 deletions

View File

@@ -2134,6 +2134,25 @@ verifyExpectedOutput(
);
const subCallFromSubPlan = stageInterpIniContext("sub-call-from-sub");
const subCallFromSubNgcFiles = [
"subs/caller.ngc",
"subs/helper.ngc",
"test.ngc",
];
assert.deepEqual(
subCallFromSubNgcFiles,
interpRegressionNgcFilesRecursive("sub-call-from-sub"),
"interp sub-call-from-sub fixture coverage drift",
);
assert.deepEqual(
subCallFromSubPlan.files
.map((file) => file.sourceRel)
.filter((sourceRel) => sourceRel.endsWith(".ngc"))
.map((sourceRel) => sourceRel.replace("tests/interp/sub-call-from-sub/", ""))
.sort(),
subCallFromSubNgcFiles,
"interp sub-call-from-sub staging manifest drift",
);
verifyExpectedOutput(
"interp_sub_call_from_sub_wasm",
interp.runFileWithIni(
@@ -2186,6 +2205,24 @@ verifyExpectedOutput(
);
const nestedSubInFileErrorPlan = stageInterpIniContext("nested-sub-in-file-error");
const nestedSubInFileErrorNgcFiles = [
"subs/sequential.ngc",
"test.ngc",
];
assert.deepEqual(
nestedSubInFileErrorNgcFiles,
interpRegressionNgcFilesRecursive("nested-sub-in-file-error"),
"interp nested-sub-in-file-error fixture coverage drift",
);
assert.deepEqual(
nestedSubInFileErrorPlan.files
.map((file) => file.sourceRel)
.filter((sourceRel) => sourceRel.endsWith(".ngc"))
.map((sourceRel) => sourceRel.replace("tests/interp/nested-sub-in-file-error/", ""))
.sort(),
nestedSubInFileErrorNgcFiles,
"interp nested-sub-in-file-error staging manifest drift",
);
verifyExpectedOutput(
"interp_nested_sub_in_file_error_wasm",
interp.runFileWithIni(