test: skip test-dns-ipv6.js if ipv6 is unavailable

Test should be skipped if ipv6 is unavailable on the running system.

Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/3444
This commit is contained in:
Junliang Yan authored and James M Snell committed 2015-10-29 08:38:42 -07:00
1 parent 9120a04981
commit 7c7ef01e65
1 file changed
+5
+5
View File
@@ -12,6 +12,11 @@ var expected = 0,
running = false,
queue = [];
if (!common.hasIPv6) {
console.log('1..0 # Skipped: this test, no IPv6 support');
return;
}
function TEST(f) {
function next() {
var f = queue.shift();