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/libtest | |
parent | 529add48bc2a8e66bdbc1926e7708535dd5317a2 (diff) | |
download | curl-0e607542dca1247217997184224fc1a779778166.tar.gz |
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/libtest')
-rw-r--r-- | tests/libtest/test.h | 12 |
1 files changed, 7 insertions, 5 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 */ |