gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] 06/08: test_large_put: added verbosity


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 06/08: test_large_put: added verbosity
Date: Sun, 22 Jan 2017 22:12:15 +0100

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 2ed00da9babc5608e8ed44e07f8d2067b4a4d8f5
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Sun Jan 22 21:25:13 2017 +0300

    test_large_put: added verbosity
---
 src/testcurl/test_large_put.c | 25 +++++++++++++++++++++----
 1 file changed, 21 insertions(+), 4 deletions(-)

diff --git a/src/testcurl/test_large_put.c b/src/testcurl/test_large_put.c
index b650e0b9..cf827a93 100644
--- a/src/testcurl/test_large_put.c
+++ b/src/testcurl/test_large_put.c
@@ -47,6 +47,7 @@
 
 static int oneone;
 static int incr_read; /* Use incremental read */
+static int verbose; /* Be verbose */
 
 #define PUT_SIZE (256 * 1024)
 
@@ -502,21 +503,37 @@ int
 main (int argc, char *const *argv)
 {
   unsigned int errorCount = 0;
+  unsigned int lastErr;
 
   oneone = has_in_name(argv[0], "11");
   incr_read = has_in_name(argv[0], "_inc");
+  verbose = has_param(argc, argv, "-v");
   if (0 != curl_global_init (CURL_GLOBAL_WIN32))
     return 99;
   put_buffer = alloc_init (PUT_SIZE);
   if (NULL == put_buffer)
     return 99;
-  errorCount += testPutInternalThread ();
-  errorCount += testPutThreadPerConn ();
-  errorCount += testPutThreadPool ();
-  errorCount += testPutExternal ();
+  lastErr = testPutInternalThread ();
+  if (verbose && 0 != lastErr)
+    fprintf (stderr, "Error during testing with internal thread with 
select().\n");
+  errorCount += lastErr;
+  lastErr = testPutThreadPerConn ();
+  if (verbose && 0 != lastErr)
+    fprintf (stderr, "Error during testing with internal thread per connection 
with select().\n");
+  errorCount += lastErr;
+  lastErr = testPutThreadPool ();
+  if (verbose && 0 != lastErr)
+    fprintf (stderr, "Error during testing with thread pool per connection 
with select().\n");
+  errorCount += lastErr;
+  lastErr = testPutExternal ();
+  if (verbose && 0 != lastErr)
+    fprintf (stderr, "Error during testing with external select().\n");
+  errorCount += lastErr;
   free (put_buffer);
   if (errorCount != 0)
     fprintf (stderr, "Error (code: %u)\n", errorCount);
+  else if (verbose)
+    printf ("All checks passed successfully.\n");
   curl_global_cleanup ();
   return (errorCount == 0) ? 0 : 1;
 }

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]