aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-06-28 08:36:54 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-06-28 08:36:54 +0200
commitf3de2974a9e5bea5e43b82a350be60a39265d1e1 (patch)
treec1ec2e16293e147c34cf7b2edec0336a4353bd66
parent1b8ce5a6ed12b9d2d0aa3d55c0c145f794ecdc2d (diff)
downloadlibssh-f3de2974a9e5bea5e43b82a350be60a39265d1e1.tar.gz
libssh-f3de2974a9e5bea5e43b82a350be60a39265d1e1.tar.xz
libssh-f3de2974a9e5bea5e43b82a350be60a39265d1e1.zip
tests: Disable ssh_is_ipaddr("255.255.255") on Win32
Till we get the issue fixed in Wine. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--tests/unittests/torture_isipaddr.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/unittests/torture_isipaddr.c b/tests/unittests/torture_isipaddr.c
index c5faa8f5..c4b6bc24 100644
--- a/tests/unittests/torture_isipaddr.c
+++ b/tests/unittests/torture_isipaddr.c
@@ -44,10 +44,9 @@ static void torture_ssh_is_ipaddr(void **state)
/*
* FIXME: Temporary workaround for Wine bug
*/
- env = getenv("WINEPATH");
- if (env == NULL) {
- assert_int_equal(ssh_is_ipaddr("255.255.255"),0);
- }
+#ifndef _WIN32
+ assert_int_equal(ssh_is_ipaddr("255.255.255"),0);
+#endif
assert_int_equal(ssh_is_ipaddr("2001:0db8:85a3:0000:0000:8a2e:0370:7334:1002"), 0);
assert_int_equal(ssh_is_ipaddr("fe80:x:202:b3ff:fe1e:8329"), 0);