[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 03/06: test_client_put_stop: limit total test time
From: |
gnunet |
Subject: |
[libmicrohttpd] 03/06: test_client_put_stop: limit total test time |
Date: |
Wed, 01 Dec 2021 13:04:35 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit c6ba7ba254a4f3419c21dfb7d2164ce43d6dff0d
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Nov 29 14:17:02 2021 +0300
test_client_put_stop: limit total test time
---
src/microhttpd/test_client_put_stop.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/microhttpd/test_client_put_stop.c
b/src/microhttpd/test_client_put_stop.c
index 41c80465..275d407e 100644
--- a/src/microhttpd/test_client_put_stop.c
+++ b/src/microhttpd/test_client_put_stop.c
@@ -1399,6 +1399,7 @@ performTestQueries (struct MHD_Daemon *d, int d_port,
struct sckt_notif_cb_param *sckt_result)
{
struct simpleQueryParams qParam;
+ time_t start;
int ret = 0; /* Return value */
size_t req_total_size;
size_t limit_send_size;
@@ -1440,6 +1441,7 @@ performTestQueries (struct MHD_Daemon *d, int d_port,
MHD_REQUEST_TERMINATED_READ_ERROR :
MHD_REQUEST_TERMINATED_CLIENT_ABORT;
found_right_reason = 0;
+ start = time (NULL);
for (limit_send_size = 1; limit_send_size < req_total_size;
limit_send_size++)
{
int test_succeed;
@@ -1498,6 +1500,12 @@ performTestQueries (struct MHD_Daemon *d, int d_port,
&qParam, ahc_param, uri_cb_param,
term_result, sckt_result);
}
+
+ if (time (NULL) - start > TIMEOUTS_VAL * 25)
+ {
+ ret |= 1 << 2;
+ fprintf (stderr, "FAILED: Test total time exceeded.\n");
+ }
}
MHD_stop_daemon (d);
--
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 <=
- [libmicrohttpd] 04/06: test_client_put_stop: cosmetics, gnunet, 2021/12/01
- [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