Skip to content

Commit bc0fd2d

Browse files
committed
dix sea tests
1 parent e28a7a7 commit bc0fd2d

6 files changed

+10
-8
lines changed

test/common/sea.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function generateSEA(targetExecutable, sourceExecutable, seaBlob, verifyWorkflow
7676
seaBlob,
7777
'--sentinel-fuse', 'NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2',
7878
...process.platform === 'darwin' ? [ '--macho-segment-name', 'NODE_SEA' ] : [],
79-
]);
79+
], undefined);
8080
} catch (e) {
8181
const message = `Cannot inject ${seaBlob} into ${targetExecutable}: ${inspect(e)}`;
8282
if (verifyWorkflow) {

test/parallel/test-snapshot-api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const entry = fixtures.path('snapshot', 'v8-startup-snapshot-api.js');
3535
'entry.js',
3636
], {
3737
cwd: tmpdir.path
38-
});
38+
}, undefined);
3939
const stats = fs.statSync(tmpdir.resolve('snapshot.blob'));
4040
assert(stats.isFile());
4141
}

test/parallel/test-snapshot-basic.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if (!process.config.variables.node_use_node_snapshot) {
4242
snapshotScript,
4343
], {
4444
cwd: tmpdir.path
45-
});
45+
}, undefined);
4646
const stats = fs.statSync(tmpdir.resolve('snapshot.blob'));
4747
assert(stats.isFile());
4848
}
@@ -58,7 +58,7 @@ const blobPath = tmpdir.resolve('my-snapshot.blob');
5858
snapshotScript,
5959
], {
6060
cwd: tmpdir.path
61-
});
61+
}, undefined);
6262
const stats = fs.statSync(blobPath);
6363
assert(stats.isFile());
6464
}

test/parallel/test-snapshot-coverage.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function filterCoverageFiles(name) {
3232
NODE_V8_COVERAGE: tmpdir.path,
3333
NODE_DEBUG_NATIVE: 'inspector_profiler',
3434
}
35-
});
35+
}, undefined);
3636
const files = fs.readdirSync(tmpdir.path);
3737
console.log('Files in tmpdir.path', files); // Log for debugging the test.
3838
const coverage = files.filter(filterCoverageFiles);
@@ -52,7 +52,7 @@ function filterCoverageFiles(name) {
5252
NODE_V8_COVERAGE: tmpdir.path,
5353
NODE_DEBUG_NATIVE: 'inspector_profiler',
5454
},
55-
});
55+
}, undefined);
5656
const files = fs.readdirSync(tmpdir.path);
5757
console.log('Files in tmpdir.path', files); // Log for debugging the test.
5858
const coverage = files.filter(filterCoverageFiles);

test/sequential/test-single-executable-application-empty.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ writeFileSync(configFile, `
3434
spawnSyncAndExitWithoutError(
3535
process.execPath,
3636
['--experimental-sea-config', 'sea-config.json'],
37-
{ cwd: tmpdir.path });
37+
{ cwd: tmpdir.path },
38+
undefined);
3839

3940
assert(existsSync(seaPrepBlob));
4041

test/sequential/test-single-executable-application-use-code-cache.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ spawnSyncAndExitWithoutError(
5252
NODE_DEBUG_NATIVE: 'SEA',
5353
...process.env,
5454
},
55-
});
55+
},
56+
undefined);
5657

5758
assert(existsSync(seaPrepBlob));
5859

0 commit comments

Comments
 (0)