From 96ed883d2fcea73a843368fa19aede9ca5387df6 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 3 Jun 2016 16:08:30 -0700 Subject: [PATCH] test: enable test-debug-brk-no-arg Fix issues with disabled test-debug-brk-no-arg and re-enable the test. PR-URL: https://github.com/nodejs/node/pull/7143 Reviewed-By: Fedor Indutny --- test/disabled/test-debug-brk-no-arg.js | 15 --------------- test/parallel/test-debug-brk-no-arg.js | 13 +++++++++++++ 2 files changed, 13 insertions(+), 15 deletions(-) delete mode 100644 test/disabled/test-debug-brk-no-arg.js create mode 100644 test/parallel/test-debug-brk-no-arg.js diff --git a/test/disabled/test-debug-brk-no-arg.js b/test/disabled/test-debug-brk-no-arg.js deleted file mode 100644 index 7e678a76dfc8f8..00000000000000 --- a/test/disabled/test-debug-brk-no-arg.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; -var common = require('../common'); -var assert = require('assert'); -var spawn = require('child_process').spawn; - -var child = spawn(process.execPath, ['--debug-brk=' + common.PORT]); -child.stderr.once('data', function(c) { - console.error('%j', c.toString()); - child.stdin.end(); -}); - -child.on('exit', function(c) { - assert(c === 0); - console.log('ok'); -}); diff --git a/test/parallel/test-debug-brk-no-arg.js b/test/parallel/test-debug-brk-no-arg.js new file mode 100644 index 00000000000000..e2ba80cd7700ef --- /dev/null +++ b/test/parallel/test-debug-brk-no-arg.js @@ -0,0 +1,13 @@ +'use strict'; +const common = require('../common'); +const assert = require('assert'); +const spawn = require('child_process').spawn; + +const child = spawn(process.execPath, ['--debug-brk=' + common.PORT, '-i']); +child.stderr.once('data', common.mustCall(function() { + child.stdin.end('.exit'); +})); + +child.on('exit', common.mustCall(function(c) { + assert.strictEqual(c, 0); +}));