commit 4653cce4f9eb3eda138c977a2943ea1c49e842d8
parent b9ab6ad0312d009e01afd96c90e50ecd0b631c07
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 16 Jul 2015 09:41:09 +0000
-fix testcase style issues
Diffstat:
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/testcurl/test_get_sendfile.c b/src/testcurl/test_get_sendfile.c
@@ -17,9 +17,8 @@
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
-
/**
- * @file daemontest_get_sendfile.c
+ * @file test_get_sendfile.c
* @brief Testcase for libmicrohttpd response from FD
* @author Christian Grothoff
*/
@@ -49,7 +48,7 @@
#define TESTSTR "This is the content of the test file we are sending using sendfile (if available)"
-char *sourcefile;
+static char *sourcefile;
static int oneone;
@@ -60,6 +59,7 @@ struct CBC
size_t size;
};
+
static size_t
copyBuffer (void *ptr, size_t size, size_t nmemb, void *ctx)
{
@@ -162,6 +162,7 @@ testInternalGet ()
return 0;
}
+
static int
testMultithreadedGet ()
{
@@ -211,6 +212,7 @@ testMultithreadedGet ()
return 0;
}
+
static int
testMultithreadedPoolGet ()
{
@@ -261,6 +263,7 @@ testMultithreadedPoolGet ()
return 0;
}
+
static int
testExternalGet ()
{
@@ -383,6 +386,7 @@ testExternalGet ()
return 0;
}
+
static int
testUnknownPortGet ()
{
diff --git a/src/testcurl/test_process_headers.c b/src/testcurl/test_process_headers.c
@@ -424,6 +424,7 @@ main (int argc, char *const *argv)
oneone = (NULL != strrchr (argv[0], (int) '/')) ?
(NULL != strstr (strrchr (argv[0], (int) '/'), "11")) : 0;
+ errorCount += testInternalGet ();
errorCount += testMultithreadedGet ();
errorCount += testMultithreadedPoolGet ();
errorCount += testExternalGet ();