aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2016-04-03 21:51:47 +0100
committerSteve Holme <steve_holme@hotmail.com>2016-04-03 21:57:38 +0100
commit066b2246727520d5311598f2c8cca423617c2d10 (patch)
tree0d1d5aaefe2be249e1dc99a405bcb6079096e61e
parent51fb24ce7f9a346f0d4f2f22f042c50e350d3aaa (diff)
tests: Fixed header files to comply with our code style
-rw-r--r--tests/libtest/test.h2
-rw-r--r--tests/unit/curlcheck.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/libtest/test.h b/tests/libtest/test.h
index 6b699fc3a..9647658db 100644
--- a/tests/libtest/test.h
+++ b/tests/libtest/test.h
@@ -355,7 +355,7 @@ extern int unitfail;
#define exe_select_test(A, B, C, D, E, Y, Z) do { \
int ec; \
- if(select_wrapper((A), (B), (C), (D), (E)) == -1 ) { \
+ if(select_wrapper((A), (B), (C), (D), (E)) == -1) { \
ec = SOCKERRNO; \
fprintf(stderr, "%s:%d select() failed, with " \
"errno %d (%s)\n", \
diff --git a/tests/unit/curlcheck.h b/tests/unit/curlcheck.h
index db813db7c..0660e2bed 100644
--- a/tests/unit/curlcheck.h
+++ b/tests/unit/curlcheck.h
@@ -24,7 +24,7 @@
/* The fail macros mark the current test step as failed, and continue */
#define fail_if(expr, msg) \
if(expr) { \
- fprintf(stderr, "%s:%d Assertion '%s' met: %s\n" , \
+ fprintf(stderr, "%s:%d Assertion '%s' met: %s\n", \
__FILE__, __LINE__, #expr, msg); \
unitfail++; \
}
@@ -57,7 +57,7 @@
/* The abort macros mark the current test step as failed, and exit the test */
#define abort_if(expr, msg) \
if(expr) { \
- fprintf(stderr, "%s:%d Abort assertion '%s' met: %s\n" , \
+ fprintf(stderr, "%s:%d Abort assertion '%s' met: %s\n", \
__FILE__, __LINE__, #expr, msg); \
unitfail++; \
goto unit_test_abort; \