commit ec72716265b31bb157d4638c9d6dca1b2bc88b3a
parent 0ae441aa76468ad00befcb6b8f795fd658385577
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 13 Nov 2009 12:12:29 +0000
check return code
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/daemon/daemon_test.c b/src/daemon/daemon_test.c
@@ -105,7 +105,11 @@ testExternalRun ()
{
maxfd = 0;
FD_ZERO (&rs);
- MHD_get_fdset (d, &rs, &rs, &rs, &maxfd);
+ if (MHD_YES != MHD_get_fdset (d, &rs, &rs, &rs, &maxfd))
+ {
+ MHD_stop_daemon (d);
+ return 256;
+ }
if (MHD_run (d) == MHD_NO)
{
MHD_stop_daemon (d);
@@ -152,7 +156,7 @@ testMultithread ()
int
main (int argc, char *const *argv)
{
- unsigned int errorCount = 0;
+ int errorCount = 0;
errorCount += testStartError ();
errorCount += testStartStop ();
errorCount += testExternalRun ();