[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 04/06: test_client_put_stop: cosmetics
From: |
gnunet |
Subject: |
[libmicrohttpd] 04/06: test_client_put_stop: cosmetics |
Date: |
Wed, 01 Dec 2021 13:04:36 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 06476807a2f5b977cac710c5665e29a7f9bb15c8
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Nov 29 17:15:18 2021 +0300
test_client_put_stop: cosmetics
---
src/microhttpd/test_client_put_stop.c | 16 +++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)
diff --git a/src/microhttpd/test_client_put_stop.c
b/src/microhttpd/test_client_put_stop.c
index 275d407e..4a6cade0 100644
--- a/src/microhttpd/test_client_put_stop.c
+++ b/src/microhttpd/test_client_put_stop.c
@@ -1322,7 +1322,7 @@ doClientQueryInThread (struct MHD_Daemon *d,
& MHD_USE_INTERNAL_POLLING_THREAD));
if (0 == p->queryPort)
- abort ();
+ externalErrorExit ();
c = _MHD_dumbClient_create (p->queryPort, p->method, p->queryPath,
p->headers, p->req_body, p->req_body_size,
@@ -1566,7 +1566,7 @@ startTestMhdDaemon (enum testMhdThreadsType thrType,
const union MHD_DaemonInfo *dinfo;
if ((NULL == ahc_param) || (NULL == uri_cb_param) || (NULL == term_result))
- abort ();
+ externalErrorExit ();
*ahc_param = (struct ahc_cls_type *) malloc (sizeof(struct ahc_cls_type));
if (NULL == *ahc_param)
@@ -1632,19 +1632,13 @@ startTestMhdDaemon (enum testMhdThreadsType thrType,
MHD_OPTION_END);
if (NULL == d)
- {
- fprintf (stderr, "Failed to start MHD daemon, errno=%d.\n", errno);
- abort ();
- }
+ mhdErrorExitDesc ("Failed to start MHD daemon");
if (0 == *pport)
{
dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT);
- if ((NULL == dinfo) || (0 == dinfo->port) )
- {
- fprintf (stderr, "MHD_get_daemon_info() failed.\n");
- abort ();
- }
+ if ((NULL == dinfo) || (0 == dinfo->port))
+ mhdErrorExitDesc ("MHD_get_daemon_info() failed");
*pport = (int) dinfo->port;
if (0 == global_port)
global_port = *pport; /* Reuse the same port for all tests */
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (8f9567bb -> a8423ab8), gnunet, 2021/12/01
- [libmicrohttpd] 02/06: test_client_put_stop: improved readability of the test results, gnunet, 2021/12/01
- [libmicrohttpd] 01/06: Partial revert of 8f9567bb48387cd9d95e5d30914f945b106d2ee4, gnunet, 2021/12/01
- [libmicrohttpd] 03/06: test_client_put_stop: limit total test time, gnunet, 2021/12/01
- [libmicrohttpd] 04/06: test_client_put_stop: cosmetics,
gnunet <=
- [libmicrohttpd] 05/06: configure: header detection fixes, gnunet, 2021/12/01
- [libmicrohttpd] 06/06: configure: do header detection before other checks, gnunet, 2021/12/01