summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-06-03 16:08:30 -0700
committerRich Trott <rtrott@gmail.com>2016-06-06 17:09:31 -0700
commit101bda1b40d135f6f6bf2c71fb41f250c53acd95 (patch)
tree95fe7c03a3b67b2876f982a855561cd91086e84b /test
parenta78c2335b137a1038610b7daa2d85406c3098f61 (diff)
downloadandroid-node-v8-101bda1b40d135f6f6bf2c71fb41f250c53acd95.tar.gz
android-node-v8-101bda1b40d135f6f6bf2c71fb41f250c53acd95.tar.bz2
android-node-v8-101bda1b40d135f6f6bf2c71fb41f250c53acd95.zip
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 <fedor@indutny.com>
Diffstat (limited to 'test')
-rw-r--r--test/disabled/test-debug-brk-no-arg.js15
-rw-r--r--test/parallel/test-debug-brk-no-arg.js13
2 files changed, 13 insertions, 15 deletions
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 7e678a76df..0000000000
--- 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 0000000000..e2ba80cd77
--- /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);
+}));