[tor-commits] [tor/master] Fix coccinelle complaint in test_config.c

asn at torproject.org asn at torproject.org
Tue Jul 7 12:34:34 UTC 2020


commit 1ee748e4ca80b6708e737b76184c0fb9980d55cd
Author: Nick Mathewson <nickm at torproject.org>
Date:   Mon Jul 6 15:17:47 2020 -0400

    Fix coccinelle complaint in test_config.c
---
 src/test/test_config.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/test/test_config.c b/src/test/test_config.c
index 045dbde0d..765db03c0 100644
--- a/src/test/test_config.c
+++ b/src/test/test_config.c
@@ -6413,11 +6413,13 @@ test_config_getinfo_config_names(void *arg)
   tor_free(answer);
 }
 
+#ifndef COCCI
 #define CONFIG_TEST(name, flags)                          \
   { #name, test_config_ ## name, flags, NULL, NULL }
 
 #define CONFIG_TEST_SETUP(suffix, name, flags, setup, setup_data) \
   { #name#suffix, test_config_ ## name, flags, setup, setup_data }
+#endif
 
 struct testcase_t config_tests[] = {
   CONFIG_TEST(adding_trusted_dir_server, TT_FORK),





More information about the tor-commits mailing list