]> gitweb.factorcode.org Git - factor.git/commitdiff
io.sockets.tests: these needs to be conditional, in case you are ipv4 only
authorBjörn Lindqvist <bjourne@gmail.com>
Thu, 10 Mar 2016 03:11:23 +0000 (04:11 +0100)
committerBjörn Lindqvist <bjourne@gmail.com>
Thu, 10 Mar 2016 03:11:23 +0000 (04:11 +0100)
basis/io/sockets/sockets-tests.factor

index 5e300f03fb6240a3722468ffd4bfe63f9bd72f64..8c465719c25c9ebe8f161a1785785881fdc88ec0 100644 (file)
@@ -180,7 +180,9 @@ os unix? [
 [ ] [ B{ 1 2 3 } "0.0.0.0" 9000 <inet4> send-once ] unit-test
 [ ] [ B{ 1 2 3 } "0.0.0.0" 9000 <inet4> broadcast-once ] unit-test
 
-[ ] [ B{ 1 2 3 } f 9000 <inet6> send-once ] unit-test
-[ ] [ B{ 1 2 3 } f 9000 <inet6> broadcast-once ] unit-test
-[ ] [ B{ 1 2 3 } "::" 9000 <inet6> send-once ] unit-test
-[ ] [ B{ 1 2 3 } "::" 9000 <inet6> broadcast-once ] unit-test
+ipv6-supported? [
+    [ ] [ B{ 1 2 3 } f 9000 <inet6> send-once ] unit-test
+    [ ] [ B{ 1 2 3 } f 9000 <inet6> broadcast-once ] unit-test
+    [ ] [ B{ 1 2 3 } "::" 9000 <inet6> send-once ] unit-test
+    [ ] [ B{ 1 2 3 } "::" 9000 <inet6> broadcast-once ] unit-test
+] when