Guard early direct-file staging paths
This commit is contained in:
@@ -1240,6 +1240,23 @@ verifyExpectedOutput(
|
||||
);
|
||||
|
||||
const doWhileBreakBugPath = writeInterpRegressionFile("do-while-break", "bug.ngc");
|
||||
const doWhileBreakNgcFiles = [
|
||||
"bug.ngc",
|
||||
"test.ngc",
|
||||
];
|
||||
assert.deepEqual(
|
||||
doWhileBreakNgcFiles,
|
||||
interpRegressionNgcFilesRecursive("do-while-break"),
|
||||
"interp do-while-break fixture coverage drift",
|
||||
);
|
||||
assert.deepEqual(
|
||||
[
|
||||
doWhileBreakBugPath,
|
||||
doWhileBreakPath,
|
||||
],
|
||||
doWhileBreakNgcFiles.map((file) => `/work/interp/do-while-break/${file}`),
|
||||
"interp do-while-break staging manifest drift",
|
||||
);
|
||||
verifyExpectedOutput(
|
||||
"interp_do_while_break_bug_wasm",
|
||||
interp.runFile(doWhileBreakBugPath),
|
||||
@@ -1285,6 +1302,21 @@ verifyExpectedOutput(
|
||||
);
|
||||
|
||||
const existsPath = writeInterpRegressionFile("exists", "test.ngc");
|
||||
const existsNgcFiles = [
|
||||
"test.ngc",
|
||||
];
|
||||
assert.deepEqual(
|
||||
existsNgcFiles,
|
||||
interpRegressionNgcFilesRecursive("exists"),
|
||||
"interp exists fixture coverage drift",
|
||||
);
|
||||
assert.deepEqual(
|
||||
[
|
||||
existsPath,
|
||||
],
|
||||
existsNgcFiles.map((file) => `/work/interp/exists/${file}`),
|
||||
"interp exists staging manifest drift",
|
||||
);
|
||||
verifyExpectedOutput(
|
||||
"interp_exists_wasm",
|
||||
interp.runFile(existsPath),
|
||||
@@ -1300,6 +1332,21 @@ verifyExpectedOutput(
|
||||
);
|
||||
|
||||
const returnValuePath = writeInterpRegressionFile("return-value", "test.ngc");
|
||||
const returnValueNgcFiles = [
|
||||
"test.ngc",
|
||||
];
|
||||
assert.deepEqual(
|
||||
returnValueNgcFiles,
|
||||
interpRegressionNgcFilesRecursive("return-value"),
|
||||
"interp return-value fixture coverage drift",
|
||||
);
|
||||
assert.deepEqual(
|
||||
[
|
||||
returnValuePath,
|
||||
],
|
||||
returnValueNgcFiles.map((file) => `/work/interp/return-value/${file}`),
|
||||
"interp return-value staging manifest drift",
|
||||
);
|
||||
verifyExpectedOutput(
|
||||
"interp_return_value_wasm",
|
||||
interp.runFile(returnValuePath),
|
||||
|
||||
Reference in New Issue
Block a user