summaryrefslogtreecommitdiff
path: root/test/testsockets.c
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2007-10-15 04:54:54 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2007-10-15 04:54:54 +0000
commitbd1f362f72121913390e747bd657c565c26edd19 (patch)
tree586e59b4e96eee45c118eb77d85b7a1da92b5112 /test/testsockets.c
parent9f77c36a4ebbb9502ec8d266d738e2645d116bb1 (diff)
downloadapr-bd1f362f72121913390e747bd657c565c26edd19.tar.gz
Reset (tc->)failed so we see the second failure message.
Reported by: Lucian Adrian Grijincu <lucian.grijincu gmail.com> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@584673 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testsockets.c')
-rw-r--r--test/testsockets.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testsockets.c b/test/testsockets.c
index 21dcf2d24..18f90e4ef 100644
--- a/test/testsockets.c
+++ b/test/testsockets.c
@@ -166,7 +166,7 @@ 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);
- failed = tc->failed; failed = 0;
+ failed = tc->failed; tc->failed = 0;
ABTS_TRUE(tc, failed);
}
@@ -175,7 +175,7 @@ static void sendto_receivefrom6(abts_case *tc, void *data)
{
int failed;
sendto_receivefrom_helper(tc, "::1", "FA0E::1234:127.1.2.3", APR_INET6);
- failed = tc->failed; failed = 0;
+ failed = tc->failed; tc->failed = 0;
ABTS_TRUE(tc, failed);
}
#endif