aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-10-09 10:58:03 -0400
committerNick Mathewson <nickm@torproject.org>2019-10-22 09:32:13 -0400
commit4fad456148738712e48582b22496e6baf0dfc1f8 (patch)
treed45921ddfad5d61485a7e3bc0bedb35376de108f /src/test/test_connection.c
parent6696a5bbae4bd21f84a5b0730273fd847b8f0e45 (diff)
downloadtor-4fad456148738712e48582b22496e6baf0dfc1f8.tar.gz
tor-4fad456148738712e48582b22496e6baf0dfc1f8.zip
test: Hide some test-declaration macro definitions to COCCI.
(These ones cause parsing failures.)
Diffstat (limited to 'src/test/test_connection.c')
-rw-r--r--src/test/test_connection.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_connection.c b/src/test/test_connection.c
index ebe7c6d36f..3148c1af66 100644
--- a/src/test/test_connection.c
+++ b/src/test/test_connection.c
@@ -881,12 +881,14 @@ test_failed_orconn_tracker(void *arg)
;
}
+#ifndef COCCI
#define CONNECTION_TESTCASE(name, fork, setup) \
{ #name, test_conn_##name, fork, &setup, NULL }
/* 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 }
+#endif
struct testcase_t connection_tests[] = {
CONNECTION_TESTCASE(get_basic, TT_FORK, test_conn_get_basic_st),