gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated (cec8013b -> ca217985)


From: gnunet
Subject: [libmicrohttpd] branch master updated (cec8013b -> ca217985)
Date: Wed, 15 Sep 2021 14:16:54 +0200

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

karlson2k pushed a change to branch master
in repository libmicrohttpd.

    from cec8013b test_postprocessor: integrated one check into unified testing
     new a7cdb394 Missing part of cec8013b704fd5f9631f8e67bc3f807603bde9b3
     new 4273eea6 test_postprocessor: added more cases for urlencoding
     new ca217985 test_postprocessor: improved error reporting

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/microhttpd/test_postprocessor.c | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)

diff --git a/src/microhttpd/test_postprocessor.c 
b/src/microhttpd/test_postprocessor.c
index f2ff622c..bb17d764 100644
--- a/src/microhttpd/test_postprocessor.c
+++ b/src/microhttpd/test_postprocessor.c
@@ -65,8 +65,16 @@ struct expResult exp_results[] = {
   {"abc", NULL, NULL, NULL, ""},
   {"x", NULL, NULL, NULL, "5"},
 #define URL_NOVALUE2_END (URL_NOVALUE2_START + 2)
+#define URL_NOVALUE3_DATA "xyz="
+#define URL_NOVALUE3_START URL_NOVALUE2_END
+  {"xyz", NULL, NULL, NULL, ""},
+#define URL_NOVALUE3_END (URL_NOVALUE3_START + 1)
+#define URL_NOVALUE4_DATA "xyz"
+#define URL_NOVALUE4_START URL_NOVALUE3_END
+  {"xyz", NULL, NULL, NULL, NULL},
+#define URL_NOVALUE4_END (URL_NOVALUE4_START + 1)
 #define URL_DATA "abc=def&x=5"
-#define URL_START URL_NOVALUE2_END
+#define URL_START URL_NOVALUE4_END
   {"abc", NULL, NULL, NULL, "def"},
   {"x", NULL, NULL, NULL, "5"},
 #define URL_END (URL_START + 2)
@@ -247,8 +255,9 @@ test_urlencoding_case (unsigned int want_start,
     if (want_off != want_end)
     {
       fprintf (stderr,
-               "Test failed in line %u: %u != %u\n",
+               "Test failed in line %u.\tStep:%u\n Got: %u\tExpected: %u\n",
                (unsigned int) __LINE__,
+               (unsigned int) step,
                want_off,
                want_end);
       return 1;
@@ -272,6 +281,12 @@ test_urlencoding (void)
   errorCount += test_urlencoding_case (URL_NOVALUE2_START,
                                        URL_NOVALUE2_END,
                                        URL_NOVALUE2_DATA);
+  errorCount += test_urlencoding_case (URL_NOVALUE3_START,
+                                       URL_NOVALUE3_END,
+                                       URL_NOVALUE3_DATA);
+  errorCount += test_urlencoding_case (URL_NOVALUE4_START,
+                                       URL_NOVALUE4_START, /* No advance */
+                                       URL_NOVALUE4_DATA);
   errorCount += test_urlencoding_case (URL_EMPTY_VALUE_START,
                                        URL_EMPTY_VALUE_END,
                                        URL_EMPTY_VALUE_DATA);
@@ -664,7 +679,6 @@ main (int argc, char *const *argv)
   errorCount += test_urlencoding ();
   errorCount += test_multipart ();
   errorCount += test_nested_multipart ();
-  errorCount += test_empty_value ();
   errorCount += test_empty_key ();
   errorCount += test_overflow ();
   if (errorCount != 0)

-- 
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]