test: changing process.exit to return while skipping tests

This patch uses `return` statement to skip the test instead of using
`process.exit` call.

PR-URL: https://github.com/nodejs/io.js/pull/2109
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
This commit is contained in:
Sakthipriyan Vairamani 2015-07-07 20:55:55 +05:30
parent 69298d36cf
commit 79c865a53f
151 changed files with 165 additions and 165 deletions

View file

@ -4,7 +4,7 @@ var assert = require('assert');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
process.exit();
return;
}
var https = require('https');