summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGibson Fahnestock <gibfahn@gmail.com>2017-11-02 10:56:27 +0000
committerGibson Fahnestock <gibfahn@gmail.com>2017-11-20 15:01:54 +0000
commit5c7b1ecbceeb32d947bea31c1256b1a9a42b8cba (patch)
tree8e3380984c121e6c0c2fb861ed407a3339446d8b /test
parent52010553d3c37b9d0b75d4c3ca9e63956a59a047 (diff)
downloadandroid-node-v8-5c7b1ecbceeb32d947bea31c1256b1a9a42b8cba.tar.gz
android-node-v8-5c7b1ecbceeb32d947bea31c1256b1a9a42b8cba.tar.bz2
android-node-v8-5c7b1ecbceeb32d947bea31c1256b1a9a42b8cba.zip
test: make debugging of inspector-port-zero easier
If the process was killed, then the exit code will be null, in which case knowing the signal is really helpful. PR-URL: https://github.com/nodejs/node/pull/16685 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/sequential/test-inspector-port-zero.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/sequential/test-inspector-port-zero.js b/test/sequential/test-inspector-port-zero.js
index a3eb08e5fb..b7eb13ba13 100644
--- a/test/sequential/test-inspector-port-zero.js
+++ b/test/sequential/test-inspector-port-zero.js
@@ -34,7 +34,10 @@ function test(arg, port = '') {
};
proc.stdout.on('close', mustCall(() => onclose()));
proc.stderr.on('close', mustCall(() => onclose()));
- proc.on('exit', mustCall((exitCode) => assert.strictEqual(exitCode, 0)));
+ proc.on('exit', mustCall((exitCode, signal) => assert.strictEqual(
+ exitCode,
+ 0,
+ `exitCode: ${exitCode}, signal: ${signal}`)));
}
}