mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
128c60d906
Co-authored-by: Daniel Lemire <daniel@lemire.me> PR-URL: https://github.com/nodejs/node/pull/52190 Reviewed-By: Daniel Lemire <daniel@lemire.me> Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Tierney Cyren <hello@bnb.im> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Ruy Adorno <ruy@vlt.sh>
15 lines
405 B
JavaScript
15 lines
405 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
const assert = require('node:assert').strict;
|
|
const childProcess = require('node:child_process');
|
|
const fixtures = require('../common/fixtures');
|
|
|
|
const child = childProcess.spawnSync(
|
|
process.execPath,
|
|
[ '--run', 'non-existent-command'],
|
|
{ cwd: fixtures.path('run-script'), encoding: 'utf8' },
|
|
);
|
|
assert.strictEqual(child.status, 1);
|
|
console.log(child.stderr);
|