Skip to content

Commit 1e98d90

Browse files
bnoordhuisrvagg
authored andcommitted
test: add regression test for --debug-brk -e 0
Check that `node --debug-brk -e 0` immediately quits. PR-URL: #3585 Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent d72bb1e commit 1e98d90

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/parallel/test-debug-brk.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use strict';
2+
3+
const common = require('../common');
4+
const assert = require('assert');
5+
const spawnSync = require('child_process').spawnSync;
6+
7+
const args = [`--debug-brk=${common.PORT}`, `-e`, `0`];
8+
const proc = spawnSync(process.execPath, args, {encoding: 'utf8'});
9+
assert(/Debugger listening on/.test(proc.stderr));

0 commit comments

Comments
 (0)