[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 01/08: test_large_put: updated to use corre
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 01/08: test_large_put: updated to use correct check for "11" in name and return '99' in case of system failures. |
Date: |
Sun, 22 Jan 2017 22:12:10 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit b6adf207b3923aa1bb74a8646107a63ccd879913
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Tue Jan 10 19:49:01 2017 +0300
test_large_put: updated to use correct check for "11" in name and return
'99' in case of system failures.
---
src/testcurl/test_large_put.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/testcurl/test_large_put.c b/src/testcurl/test_large_put.c
index df5d824d..d915ab00 100644
--- a/src/testcurl/test_large_put.c
+++ b/src/testcurl/test_large_put.c
@@ -36,6 +36,8 @@
#include <unistd.h>
#endif
+#include "test_helpers.h"
+
#if defined(CPU_COUNT) && (CPU_COUNT+0) < 2
#undef CPU_COUNT
#endif
@@ -470,12 +472,12 @@ main (int argc, char *const *argv)
{
unsigned int errorCount = 0;
- oneone = (NULL != strrchr (argv[0], (int) '/')) ?
- (NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
+ oneone = has_in_name(argv[0], "11");
if (0 != curl_global_init (CURL_GLOBAL_WIN32))
- return 2;
+ return 99;
put_buffer = malloc (PUT_SIZE);
- if (NULL == put_buffer) return 1;
+ if (NULL == put_buffer)
+ return 99;
memset (put_buffer, 1, PUT_SIZE);
errorCount += testInternalPut ();
errorCount += testMultithreadedPut ();
@@ -485,5 +487,5 @@ main (int argc, char *const *argv)
if (errorCount != 0)
fprintf (stderr, "Error (code: %u)\n", errorCount);
curl_global_cleanup ();
- return errorCount != 0; /* 0 == pass */
+ return (errorCount == 0) ? 0 : 1;
}
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [libmicrohttpd] branch master updated (44eec406 -> c623d35d), gnunet, 2017/01/22
- [GNUnet-SVN] [libmicrohttpd] 05/08: test_large_put: initialise test buffer with varied data to detect more errors., gnunet, 2017/01/22
- [GNUnet-SVN] [libmicrohttpd] 07/08: test_large_put: added test with incremental read and limited buffer, gnunet, 2017/01/22
- [GNUnet-SVN] [libmicrohttpd] 01/08: test_large_put: updated to use correct check for "11" in name and return '99' in case of system failures.,
gnunet <=
- [GNUnet-SVN] [libmicrohttpd] 03/08: test_large_put: use proper types for size variables, gnunet, 2017/01/22
- [GNUnet-SVN] [libmicrohttpd] 02/08: test_large_put: renamed functions for readability, gnunet, 2017/01/22
- [GNUnet-SVN] [libmicrohttpd] 04/08: test_large_put: support incremental reading of incoming data, gnunet, 2017/01/22
- [GNUnet-SVN] [libmicrohttpd] 08/08: test_large_put: added poll() and epoll testing., gnunet, 2017/01/22
- [GNUnet-SVN] [libmicrohttpd] 06/08: test_large_put: added verbosity, gnunet, 2017/01/22