1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-05-28 17:41:28 +03:00

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>
This commit is contained in:
Andreas Schneider 2018-06-28 08:36:54 +02:00
parent 1b8ce5a6ed
commit f3de2974a9

View File

@ -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);