summaryrefslogtreecommitdiff
path: root/test/testpoll.c
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2007-02-22 15:15:04 +0000
committerJoe Orton <jorton@apache.org>2007-02-22 15:15:04 +0000
commit2b80cae694eb3aa6059e1c12e322c49e75afda91 (patch)
tree076c27a401777842e05d7a26525551f0fae20ffe /test/testpoll.c
parent89b7d235572836ae010fa5647dcf2798da89b08e (diff)
downloadapr-2b80cae694eb3aa6059e1c12e322c49e75afda91.tar.gz
* test/testpoll.c: Fix to only return in ENOTIMPL case.
Submitted by: Ryan Phillips <ryan-apr trolocsis.com> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@510542 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testpoll.c')
-rw-r--r--test/testpoll.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/testpoll.c b/test/testpoll.c
index b0875a2fd..a3030327e 100644
--- a/test/testpoll.c
+++ b/test/testpoll.c
@@ -553,8 +553,13 @@ static void pollset_remove(abts_case *tc, void *data)
(hot_files[1].client_data == (void *)1)));
}
-#define POLLCB_PREREQ do { if (pollcb == NULL) \
-ABTS_NOT_IMPL(tc, "pollcb interface not supported"); return; } while (0)
+#define POLLCB_PREREQ \
+ do { \
+ if (pollcb == NULL) { \
+ ABTS_NOT_IMPL(tc, "pollcb interface not supported"); \
+ return; \
+ } \
+ } while (0)
static void setup_pollcb(abts_case *tc, void *data)
{