diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-06-16 00:41:21 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-06-16 00:42:44 +0300 |
commit | e8d937beb5e0bf118c381846f2392cab973a2528 (patch) | |
tree | a7bec6dece0675986811e967d7e9756cc19e415a /src/microhttpd/test_daemon.c | |
parent | 36bf651023e2f810bd2ae4aa1ab2354338b9f00c (diff) | |
download | libmicrohttpd-e8d937beb5e0bf118c381846f2392cab973a2528.tar.gz libmicrohttpd-e8d937beb5e0bf118c381846f2392cab973a2528.zip |
Make testsuite parallel build compatible (part 1)
Diffstat (limited to 'src/microhttpd/test_daemon.c')
-rw-r--r-- | src/microhttpd/test_daemon.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/microhttpd/test_daemon.c b/src/microhttpd/test_daemon.c index 9fc8e16d..bd201512 100644 --- a/src/microhttpd/test_daemon.c +++ b/src/microhttpd/test_daemon.c | |||
@@ -89,7 +89,7 @@ testStartStop () | |||
89 | struct MHD_Daemon *d; | 89 | struct MHD_Daemon *d; |
90 | 90 | ||
91 | d = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, | 91 | d = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, |
92 | 1080, | 92 | 0, |
93 | &apc_nothing, NULL, | 93 | &apc_nothing, NULL, |
94 | &ahc_nothing, NULL, | 94 | &ahc_nothing, NULL, |
95 | MHD_OPTION_END); | 95 | MHD_OPTION_END); |
@@ -97,7 +97,7 @@ testStartStop () | |||
97 | { | 97 | { |
98 | fprintf (stderr, | 98 | fprintf (stderr, |
99 | "Failed to start daemon on port %u\n", | 99 | "Failed to start daemon on port %u\n", |
100 | 1080); | 100 | 0); |
101 | exit (77); | 101 | exit (77); |
102 | } | 102 | } |
103 | MHD_stop_daemon (d); | 103 | MHD_stop_daemon (d); |
@@ -114,7 +114,7 @@ testExternalRun () | |||
114 | int i; | 114 | int i; |
115 | 115 | ||
116 | d = MHD_start_daemon (MHD_USE_ERROR_LOG, | 116 | d = MHD_start_daemon (MHD_USE_ERROR_LOG, |
117 | 1081, | 117 | 0, |
118 | &apc_all, NULL, | 118 | &apc_all, NULL, |
119 | &ahc_nothing, NULL, | 119 | &ahc_nothing, NULL, |
120 | MHD_OPTION_END); | 120 | MHD_OPTION_END); |
@@ -123,7 +123,7 @@ testExternalRun () | |||
123 | { | 123 | { |
124 | fprintf (stderr, | 124 | fprintf (stderr, |
125 | "Failed to start daemon on port %u\n", | 125 | "Failed to start daemon on port %u\n", |
126 | 1081); | 126 | 0); |
127 | exit (77); | 127 | exit (77); |
128 | } | 128 | } |
129 | i = 0; | 129 | i = 0; |
@@ -158,7 +158,7 @@ testThread () | |||
158 | struct MHD_Daemon *d; | 158 | struct MHD_Daemon *d; |
159 | 159 | ||
160 | d = MHD_start_daemon (MHD_USE_ERROR_LOG | MHD_USE_INTERNAL_POLLING_THREAD, | 160 | d = MHD_start_daemon (MHD_USE_ERROR_LOG | MHD_USE_INTERNAL_POLLING_THREAD, |
161 | 1082, | 161 | 0, |
162 | &apc_all, NULL, | 162 | &apc_all, NULL, |
163 | &ahc_nothing, NULL, | 163 | &ahc_nothing, NULL, |
164 | MHD_OPTION_END); | 164 | MHD_OPTION_END); |
@@ -187,7 +187,7 @@ testMultithread () | |||
187 | struct MHD_Daemon *d; | 187 | struct MHD_Daemon *d; |
188 | 188 | ||
189 | d = MHD_start_daemon (MHD_USE_ERROR_LOG | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_THREAD_PER_CONNECTION, | 189 | d = MHD_start_daemon (MHD_USE_ERROR_LOG | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_THREAD_PER_CONNECTION, |
190 | 1083, | 190 | 0, |
191 | &apc_all, NULL, | 191 | &apc_all, NULL, |
192 | &ahc_nothing, NULL, | 192 | &ahc_nothing, NULL, |
193 | MHD_OPTION_END); | 193 | MHD_OPTION_END); |
@@ -196,7 +196,7 @@ testMultithread () | |||
196 | { | 196 | { |
197 | fprintf (stderr, | 197 | fprintf (stderr, |
198 | "Failed to start daemon on port %u\n", | 198 | "Failed to start daemon on port %u\n", |
199 | 1083); | 199 | 0); |
200 | exit (77); | 200 | exit (77); |
201 | } | 201 | } |
202 | if (MHD_run (d) != MHD_NO) | 202 | if (MHD_run (d) != MHD_NO) |