diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-11-13 12:12:29 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-11-13 12:12:29 +0000 |
commit | ec72716265b31bb157d4638c9d6dca1b2bc88b3a (patch) | |
tree | 8837da5b67e6b23ff7b80458c9819faa05fe6370 /src/daemon/daemon_test.c | |
parent | 0ae441aa76468ad00befcb6b8f795fd658385577 (diff) | |
download | libmicrohttpd-ec72716265b31bb157d4638c9d6dca1b2bc88b3a.tar.gz libmicrohttpd-ec72716265b31bb157d4638c9d6dca1b2bc88b3a.zip |
check return code
Diffstat (limited to 'src/daemon/daemon_test.c')
-rw-r--r-- | src/daemon/daemon_test.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/daemon/daemon_test.c b/src/daemon/daemon_test.c index f48eb9f8..6340a2e7 100644 --- a/src/daemon/daemon_test.c +++ b/src/daemon/daemon_test.c | |||
@@ -105,7 +105,11 @@ testExternalRun () | |||
105 | { | 105 | { |
106 | maxfd = 0; | 106 | maxfd = 0; |
107 | FD_ZERO (&rs); | 107 | FD_ZERO (&rs); |
108 | MHD_get_fdset (d, &rs, &rs, &rs, &maxfd); | 108 | if (MHD_YES != MHD_get_fdset (d, &rs, &rs, &rs, &maxfd)) |
109 | { | ||
110 | MHD_stop_daemon (d); | ||
111 | return 256; | ||
112 | } | ||
109 | if (MHD_run (d) == MHD_NO) | 113 | if (MHD_run (d) == MHD_NO) |
110 | { | 114 | { |
111 | MHD_stop_daemon (d); | 115 | MHD_stop_daemon (d); |
@@ -152,7 +156,7 @@ testMultithread () | |||
152 | int | 156 | int |
153 | main (int argc, char *const *argv) | 157 | main (int argc, char *const *argv) |
154 | { | 158 | { |
155 | unsigned int errorCount = 0; | 159 | int errorCount = 0; |
156 | errorCount += testStartError (); | 160 | errorCount += testStartError (); |
157 | errorCount += testStartStop (); | 161 | errorCount += testStartStop (); |
158 | errorCount += testExternalRun (); | 162 | errorCount += testExternalRun (); |