aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/curlcheck.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-04-03 16:21:10 +0200
committerDaniel Stenberg <daniel@haxx.se>2016-04-03 22:38:36 +0200
commita981141b199702ffd780a4390e601db565102c65 (patch)
treec92b2a21887fb1f9683372c2564584d1ee79fea7 /tests/unit/curlcheck.h
parentd3252e000c96f31456667c3033c13d83e2628d29 (diff)
unit: make unit test source code checksrc compliant
Diffstat (limited to 'tests/unit/curlcheck.h')
-rw-r--r--tests/unit/curlcheck.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/tests/unit/curlcheck.h b/tests/unit/curlcheck.h
index 22f05c188..db813db7c 100644
--- a/tests/unit/curlcheck.h
+++ b/tests/unit/curlcheck.h
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -38,10 +38,10 @@
#define verify_memory(dynamic, check, len) \
if(dynamic && memcmp(dynamic, check, len)) { \
- fprintf(stderr, "%s:%d Memory buffer mismatch size %d. '%s' is not\n", \
- __FILE__, __LINE__, len, hexdump((unsigned char *)check, len)); \
+ fprintf(stderr, "%s:%d Memory buffer mismatch size %d. '%s' is not\n", \
+ __FILE__, __LINE__, len, hexdump((unsigned char *)check, len)); \
fprintf(stderr, "%s:%d the same as '%s'\n", \
- __FILE__, __LINE__, hexdump((unsigned char *)dynamic, len)); \
+ __FILE__, __LINE__, hexdump((unsigned char *)dynamic, len)); \
unitfail++; \
}
@@ -85,10 +85,11 @@ extern int unitfail;
#define UNITTEST_START \
int test(char *arg) \
{ \
- (void)arg; \
- if (unit_setup()) { \
- fail("unit_setup() failure"); \
- } else {
+ (void)arg; \
+ if(unit_setup()) { \
+ fail("unit_setup() failure"); \
+ } \
+ else {
#define UNITTEST_STOP \
goto unit_test_abort; /* avoid warning */ \