]> gitweb.factorcode.org Git - factor.git/commitdiff
unix.ffi: Arch Linux doesn't seem to have aliases.
authorDoug Coleman <doug.coleman@gmail.com>
Tue, 22 Apr 2014 15:25:51 +0000 (08:25 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Tue, 22 Apr 2014 15:25:51 +0000 (08:25 -0700)
basis/unix/ffi/ffi-tests.factor

index 16530eeae55eb9f4f423473d91480d3a6464160f..29eba2572a0cefc97e837385281b8a5a10e397de 100644 (file)
@@ -4,9 +4,10 @@ IN: unix.ffi.tests
 
 [ 80 ] [ "http" f getservbyname port>> ntohs ] unit-test
 
+! Aliases seem unreliable. Leave this as an example but don't rely
+! on aliases working.
 [ t ] [
-    0 "http" f getservbyname aliases>> utf8 alien>strings
-    "www" swap member?
+    "http" f getservbyname aliases>> utf8 alien>strings drop
 ] unit-test
 
 [ "http" ] [ 80 htons f getservbyport name>> ] unit-test