[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 1ee748e4ca80b6708e737b76184c0fb9980d55cd
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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),



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits