diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-03-30 10:55:31 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-03-30 16:05:30 +0200 |
commit | 0e607542dca1247217997184224fc1a779778166 (patch) | |
tree | 104bc925f4d51abb088953cc35de96ee33e9e610 /tests | |
parent | 529add48bc2a8e66bdbc1926e7708535dd5317a2 (diff) |
cleanup: insert newline after if() conditions
Our code style mandates we put the conditional block on a separate
line. These mistakes are now detected by the updated checksrc.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libtest/test.h | 12 | ||||
-rw-r--r-- | tests/unit/unit1394.c | 6 |
2 files changed, 11 insertions, 7 deletions
diff --git a/tests/libtest/test.h b/tests/libtest/test.h index 393743962..4f2af415a 100644 --- a/tests/libtest/test.h +++ b/tests/libtest/test.h @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2020, 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 @@ -44,11 +44,13 @@ #include "curl_printf.h" -#define test_setopt(A,B,C) \ - if((res = curl_easy_setopt((A), (B), (C))) != CURLE_OK) goto test_cleanup +#define test_setopt(A,B,C) \ + if((res = curl_easy_setopt((A), (B), (C))) != CURLE_OK) \ + goto test_cleanup -#define test_multi_setopt(A,B,C) \ - if((res = curl_multi_setopt((A), (B), (C))) != CURLE_OK) goto test_cleanup +#define test_multi_setopt(A,B,C) \ + if((res = curl_multi_setopt((A), (B), (C))) != CURLE_OK) \ + goto test_cleanup extern char *libtest_arg2; /* set by first.c to the argv[2] or NULL */ extern char *libtest_arg3; /* set by first.c to the argv[3] or NULL */ diff --git a/tests/unit/unit1394.c b/tests/unit/unit1394.c index 6855fc7ab..d6644f8eb 100644 --- a/tests/unit/unit1394.c +++ b/tests/unit/unit1394.c @@ -122,8 +122,10 @@ UNITTEST_START fail("assertion failure"); } } - if(certname) free(certname); - if(passphrase) free(passphrase); + if(certname) + free(certname); + if(passphrase) + free(passphrase); } UNITTEST_STOP |