diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-10-09 10:58:03 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-10-22 09:32:13 -0400 |
commit | 4fad456148738712e48582b22496e6baf0dfc1f8 (patch) | |
tree | d45921ddfad5d61485a7e3bc0bedb35376de108f /src/test/test_controller.c | |
parent | 6696a5bbae4bd21f84a5b0730273fd847b8f0e45 (diff) | |
download | tor-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_controller.c')
-rw-r--r-- | src/test/test_controller.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/test_controller.c b/src/test/test_controller.c index b9cbe0a14d..df595055f5 100644 --- a/src/test/test_controller.c +++ b/src/test/test_controller.c @@ -119,6 +119,7 @@ test_controller_parse_cmd(void *arg) control_cmd_args_free(result); } +#ifndef COCCI #define OK(inp, out) \ { inp "\r\n", out, NULL } #define ERR(inp, err) \ @@ -128,6 +129,7 @@ test_controller_parse_cmd(void *arg) { &syntax, \ ARRAY_LENGTH(array), \ array } +#endif static const parser_testcase_t one_to_three_tests[] = { ERR("", "Need at least 1 argument(s)"), @@ -1818,9 +1820,11 @@ test_getinfo_md_all(void *arg) return; } +#ifndef COCCI #define PARSER_TEST(type) \ { "parse/" #type, test_controller_parse_cmd, 0, &passthrough_setup, \ (void*)&parse_ ## type ## _params } +#endif struct testcase_t controller_tests[] = { PARSER_TEST(one_to_three), |