diff options
-rw-r--r-- | test/testsockets.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/testsockets.c b/test/testsockets.c index 5cd35e1e3..21dcf2d24 100644 --- a/test/testsockets.c +++ b/test/testsockets.c @@ -164,15 +164,19 @@ static void sendto_receivefrom_helper(abts_case *tc, const char *addr, static void sendto_receivefrom(abts_case *tc, void *data) { + int failed; sendto_receivefrom_helper(tc, "127.0.0.1", "127.1.2.3", APR_INET); - ABTS_TRUE(tc, !tc->failed); + failed = tc->failed; failed = 0; + ABTS_TRUE(tc, failed); } #if APR_HAVE_IPV6 static void sendto_receivefrom6(abts_case *tc, void *data) { + int failed; sendto_receivefrom_helper(tc, "::1", "FA0E::1234:127.1.2.3", APR_INET6); - ABTS_TRUE(tc, !tc->failed); + failed = tc->failed; failed = 0; + ABTS_TRUE(tc, failed); } #endif |