]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Break CONNECTION_TESTCAE_ARG across multiple lines
authorNick Mathewson <nickm@torproject.org>
Thu, 6 Feb 2020 22:05:53 +0000 (17:05 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 6 Feb 2020 22:21:34 +0000 (17:21 -0500)
src/test/test_connection.c

index 7ed831f7d88089d00236232b00689d67179b373f..fca4d884bb6a74e18f986b5e2bbd06fb19cf863e 100644 (file)
@@ -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;