aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_confparse.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_confparse.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_confparse.c')
-rw-r--r--src/test/test_confparse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_confparse.c b/src/test/test_confparse.c
index bd2b5cdf1b..454b38c646 100644
--- a/src/test/test_confparse.c
+++ b/src/test/test_confparse.c
@@ -1027,12 +1027,14 @@ test_confparse_find_option_name(void *arg)
config_mgr_free(mgr);
}
+#ifndef COCCI
#define CONFPARSE_TEST(name, flags) \
{ #name, test_confparse_ ## name, flags, NULL, NULL }
#define BADVAL_TEST(name) \
{ "badval_" #name, test_confparse_assign_badval, 0, \
&passthrough_setup, (void*)&bv_ ## name }
+#endif
struct testcase_t confparse_tests[] = {
CONFPARSE_TEST(init, 0),