diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2007-10-15 03:55:13 +0000 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2007-10-15 03:55:13 +0000 |
commit | 9f77c36a4ebbb9502ec8d266d738e2645d116bb1 (patch) | |
tree | 940cbc58c370715e812e454e84e9462fef9b40b8 /test/testsockets.c | |
parent | 539a2bf63e6eeb2df98cb65d8445e7508e01cb90 (diff) | |
download | apr-9f77c36a4ebbb9502ec8d266d738e2645d116bb1.tar.gz |
reset the fail flag or we cannot see consecutive failures. We are
interested in the original failure, as well as which section was
invoked when it failed.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@584663 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testsockets.c')
-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 |