[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 01/09: test_upgrade: replaced a few left abort() with me
From: |
gnunet |
Subject: |
[libmicrohttpd] 01/09: test_upgrade: replaced a few left abort() with meaningful descriptions |
Date: |
Sat, 15 Jan 2022 15:47:41 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit c5c6afeeb904822a857818c7026e0c49589e5e86
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Fri Jan 14 15:52:06 2022 +0300
test_upgrade: replaced a few left abort() with meaningful descriptions
---
src/microhttpd/test_upgrade.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/microhttpd/test_upgrade.c b/src/microhttpd/test_upgrade.c
index 152bc85b..ba242c33 100644
--- a/src/microhttpd/test_upgrade.c
+++ b/src/microhttpd/test_upgrade.c
@@ -196,7 +196,10 @@ gnutlscli_connect (int *sock,
SOCK_STREAM,
0,
sp))
- return -1;
+ {
+ testErrorLogDesc ("socketpair() failed");
+ return (pid_t) -1;
+ }
chld = fork ();
if (0 != chld)
{
@@ -208,9 +211,9 @@ gnutlscli_connect (int *sock,
(void) close (0);
(void) close (1);
if (-1 == dup2 (sp[0], 0))
- abort ();
+ externalErrorExitDesc ("dup2() failed");
if (-1 == dup2 (sp[0], 1))
- abort ();
+ externalErrorExitDesc ("dup2() failed");
MHD_socket_close_chk_ (sp[0]);
if (TLS_CLI_GNUTLS == use_tls_tool)
{
@@ -1200,7 +1203,7 @@ run_mhd_loop (struct MHD_Daemon *daemon,
run_mhd_epoll_loop (daemon);
#endif
else
- abort ();
+ externalErrorExitDesc ("Wrong 'flags' value");
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (376afc84 -> 0ea5d514), gnunet, 2022/01/15
- [libmicrohttpd] 02/09: test_upgrade: don't fail with particular sockets errors, gnunet, 2022/01/15
- [libmicrohttpd] 03/09: test_upgrade: fail if connection is closed when it shouldn't, gnunet, 2022/01/15
- [libmicrohttpd] 01/09: test_upgrade: replaced a few left abort() with meaningful descriptions,
gnunet <=
- [libmicrohttpd] 05/09: test_upgrade: minor code refactoring, gnunet, 2022/01/15
- [libmicrohttpd] 09/09: test_upgrade{, _large}: used the same port for all checks., gnunet, 2022/01/15
- [libmicrohttpd] 06/09: test_upgrade: added missing fflush(), gnunet, 2022/01/15
- [libmicrohttpd] 04/09: test_upgrade: use 'volatile' for variable with multithread access, gnunet, 2022/01/15
- [libmicrohttpd] 07/09: test_upgrade_large: applied fixes and improvements from test_upgrade, gnunet, 2022/01/15
- [libmicrohttpd] 08/09: test_upgrade{,_large}: simplified stdout,stderr flushing, gnunet, 2022/01/15