aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/daemon_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/daemon_test.c')
-rw-r--r--src/daemon/daemon_test.c8
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 ()
152int 156int
153main (int argc, char *const *argv) 157main (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 ();