gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 02/03: test_postprocessor: report more details


From: gnunet
Subject: [libmicrohttpd] 02/03: test_postprocessor: report more details
Date: Wed, 15 Sep 2021 20:18:45 +0200

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 0d467e4c75e76876174789a78fb21cc8c32f1f35
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Wed Sep 15 21:16:46 2021 +0300

    test_postprocessor: report more details
---
 src/microhttpd/test_postprocessor.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/microhttpd/test_postprocessor.c 
b/src/microhttpd/test_postprocessor.c
index b3231c0e..6d194598 100644
--- a/src/microhttpd/test_postprocessor.c
+++ b/src/microhttpd/test_postprocessor.c
@@ -209,6 +209,7 @@ test_urlencoding_case (unsigned int want_start,
                        const char *url_data)
 {
   size_t step;
+  int errors = 0;
   const size_t size = strlen (url_data);
 
   for (step = 1; size >= step; ++step)
@@ -256,15 +257,17 @@ test_urlencoding_case (unsigned int want_start,
     if (want_off != want_end)
     {
       fprintf (stderr,
-               "Test failed in line %u.\tStep:%u\n Got: %u\tExpected: %u\n",
+               "Test failed in line %u.\tStep: %u.\tData: \"%s\"\n" \
+               " Got: %u\tExpected: %u\n",
                (unsigned int) __LINE__,
                (unsigned int) step,
+               url_data,
                want_off,
                want_end);
-      return 1;
+      errors++;
     }
   }
-  return 0;
+  return errors;
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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