aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-02-06 17:05:53 -0500
committerNick Mathewson <nickm@torproject.org>2020-02-06 17:21:34 -0500
commit1651f92c1608c5df2c0e83ae377c86d14499eb34 (patch)
tree21608666c8ded305a8aafff2824eff78c54e510d /src/test/test_connection.c
parent8a5a1600cdbe678bbd271b4bff29bbe8b70d6b05 (diff)
downloadtor-1651f92c1608c5df2c0e83ae377c86d14499eb34.tar.gz
tor-1651f92c1608c5df2c0e83ae377c86d14499eb34.zip
Break CONNECTION_TESTCAE_ARG across multiple lines
Diffstat (limited to 'src/test/test_connection.c')
-rw-r--r--src/test/test_connection.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/test/test_connection.c b/src/test/test_connection.c
index 7ed831f7d8..fca4d884bb 100644
--- a/src/test/test_connection.c
+++ b/src/test/test_connection.c
@@ -967,9 +967,14 @@ test_failed_orconn_tracker(void *arg)
#define CONNECTION_TESTCASE(name, fork, setup) \
{ #name, test_conn_##name, fork, &setup, NULL }
+#define STR(x) #x
/* where arg is an expression (constant, variable, compound expression) */
-#define CONNECTION_TESTCASE_ARG(name, fork, setup, arg) \
- { #name "_" #arg, test_conn_##name, fork, &setup, (void *)arg }
+#define CONNECTION_TESTCASE_ARG(name, fork, setup, arg) \
+ { #name "_" STR(x), \
+ test_conn_##name, \
+ fork, \
+ &setup, \
+ (void *)arg }
#endif /* !defined(COCCI) */
static const unsigned int PROXY_CONNECT_ARG = PROXY_CONNECT;