test: add test-net-pingpong to `make test-uv` list
authorBen Noordhuis <info@bnoordhuis.nl>
Thu, 21 Jul 2011 19:22:56 +0000 (21:22 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Thu, 21 Jul 2011 19:27:01 +0000 (21:27 +0200)
Makefile
test/simple/test-net-pingpong.js

index 95cb3ce..6faae92 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -144,6 +144,7 @@ UVTEST += simple/test-http-write-empty-string
 UVTEST += simple/test-http-wget
 UVTEST += simple/test-mkdir-rmdir
 UVTEST += simple/test-net-binary
+UVTEST += simple/test-net-pingpong
 UVTEST += simple/test-net-can-reset-timeout
 UVTEST += simple/test-net-connect-buffer
 UVTEST += simple/test-net-connect-timeout
index 98136df..d90073f 100644 (file)
@@ -129,19 +129,12 @@ function pingPongTest(port, host) {
 }
 
 /* All are run at once, so run on different ports */
-if (!process.useUV) {
-  // these tests will not run yet with net_uv TODO: remove when net_uv supports dns
-  pingPongTest('/tmp/pingpong.sock');
-}
+pingPongTest(common.PIPE);
 pingPongTest(20988);
 pingPongTest(20989, 'localhost');
 pingPongTest(20997, '::1');
 
 process.addListener('exit', function () {
-  if (!process.useUV) {
-    assert.equal(4, tests_run);
-  } else {
-    assert.equal(3, tests_run);
-  }
+  assert.equal(4, tests_run);
   console.log('done');
 });