mirror of
https://github.com/nodejs/node.git
synced 2025-08-16 06:08:50 +02:00
test: add spawnSyncAndAssert
util
PR-URL: https://github.com/nodejs/node/pull/52132 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
This commit is contained in:
parent
f69946b905
commit
c714cda9a7
21 changed files with 77 additions and 72 deletions
|
@ -8,8 +8,9 @@ const assert = require('assert');
|
|||
const tmpdir = require('../common/tmpdir');
|
||||
const fixtures = require('../common/fixtures');
|
||||
const {
|
||||
spawnSyncAndExitWithoutError,
|
||||
spawnSyncAndAssert,
|
||||
spawnSyncAndExit,
|
||||
spawnSyncAndExitWithoutError,
|
||||
} = require('../common/child_process');
|
||||
const fs = require('fs');
|
||||
|
||||
|
@ -65,7 +66,7 @@ const blobPath = tmpdir.resolve('my-snapshot.blob');
|
|||
|
||||
{
|
||||
// Check --help.
|
||||
spawnSyncAndExitWithoutError(process.execPath, [
|
||||
spawnSyncAndAssert(process.execPath, [
|
||||
'--snapshot-blob',
|
||||
blobPath,
|
||||
'--help',
|
||||
|
@ -78,7 +79,7 @@ const blobPath = tmpdir.resolve('my-snapshot.blob');
|
|||
|
||||
{
|
||||
// Check -c.
|
||||
spawnSyncAndExitWithoutError(process.execPath, [
|
||||
spawnSyncAndAssert(process.execPath, [
|
||||
'--snapshot-blob',
|
||||
blobPath,
|
||||
'-c',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue