[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] branch master updated: test_http_reasons: fixed
From: |
gnunet |
Subject: |
[libmicrohttpd] branch master updated: test_http_reasons: fixed |
Date: |
Wed, 28 Jul 2021 12:51:37 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
The following commit(s) were added to refs/heads/master by this push:
new 0eb4d030 test_http_reasons: fixed
0eb4d030 is described below
commit 0eb4d030aef5eedce992e45a4e0d84e898743143
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Wed Jul 28 13:47:09 2021 +0300
test_http_reasons: fixed
The test was broken with update for new API
---
src/microhttpd/test_http_reasons.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/microhttpd/test_http_reasons.c
b/src/microhttpd/test_http_reasons.c
index b648c3b0..6a0b24b9 100644
--- a/src/microhttpd/test_http_reasons.c
+++ b/src/microhttpd/test_http_reasons.c
@@ -31,6 +31,7 @@
static const char *const r_unknown = "unknown";
+/* Return zero when no error is detected */
static int
expect_result (int code, const char *expected)
{
@@ -42,7 +43,7 @@ expect_result (int code, const char *expected)
fprintf (stderr,
"Incorrect reason returned for code %d:\n Returned: \"%s\"
\tExpected: \"%s\"\n",
code, reason, expected);
- return 0;
+ return 1;
}
if (r_unknown == expected)
exp_len = 0;
@@ -53,9 +54,9 @@ expect_result (int code, const char *expected)
fprintf (stderr,
"Incorrect reason length returned for code %d:\n Returned:
\"%u\" \tExpected: \"%u\"\n",
code, (unsigned) len, (unsigned) exp_len);
- return 0;
+ return 1;
}
- return 1;
+ return 0;
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libmicrohttpd] branch master updated: test_http_reasons: fixed,
gnunet <=