Split the tests so that it's easier to isolate and debug issues, and we can run the test cases in parallel to speed up. Also add more comments about what they are testing. PR-URL: https://github.com/nodejs/node/pull/61571 Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
14 lines
323 B
JavaScript
14 lines
323 B
JavaScript
'use strict';
|
|
|
|
// Tests that process.exitCode works correctly in embedded environments.
|
|
|
|
const common = require('../common');
|
|
const { spawnSyncAndExit } = require('../common/child_process');
|
|
|
|
spawnSyncAndExit(
|
|
common.resolveBuiltBinary('embedtest'),
|
|
['process.exitCode = 8'],
|
|
{
|
|
status: 8,
|
|
signal: null,
|
|
});
|