summaryrefslogtreecommitdiff
path: root/test/simple/test-tls-server-verify.js
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2014-07-23 23:51:14 +0400
committerFedor Indutny <fedor@indutny.com>2014-07-23 23:51:14 +0400
commit93390ffc209b49d136d92581f55ce65a2f156b0b (patch)
tree98cdbaee3c157e6cffdc94737b15b7e031fc79fb /test/simple/test-tls-server-verify.js
parent96b166f291ed2323a079146c484adef055008257 (diff)
downloadandroid-node-v8-93390ffc209b49d136d92581f55ce65a2f156b0b.tar.gz
android-node-v8-93390ffc209b49d136d92581f55ce65a2f156b0b.tar.bz2
android-node-v8-93390ffc209b49d136d92581f55ce65a2f156b0b.zip
test: fix test-tls-server-verify
fix #7963
Diffstat (limited to 'test/simple/test-tls-server-verify.js')
-rw-r--r--test/simple/test-tls-server-verify.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/simple/test-tls-server-verify.js b/test/simple/test-tls-server-verify.js
index 2b09d82163..377f95b6ba 100644
--- a/test/simple/test-tls-server-verify.js
+++ b/test/simple/test-tls-server-verify.js
@@ -19,11 +19,10 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
+var common = require('../common');
-
-
-if (!process.versions.openssl) {
- console.error('Skipping because node compiled without OpenSSL.');
+if (!common.opensslCli) {
+ console.error('Skipping because node compiled without OpenSSL CLI.');
process.exit(0);
}
@@ -179,7 +178,8 @@ function runClient(options, cb) {
}
// To test use: openssl s_client -connect localhost:8000
- var client = spawn('openssl', args);
+ console.log(common.opensslCli, args);
+ var client = spawn(common.opensslCli, args);
var out = '';