diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-10-22 09:39:06 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-10-22 09:39:06 -0400 |
commit | b2d487ae2249a307cd23255dbb1a22241eefd6ef (patch) | |
tree | cd754fbe8d1c13264749f997f1221b1635a97e49 /src/test/test_controller.c | |
parent | 2d013bbe5cccaccf9ace0beec5a987fb80e850ad (diff) | |
parent | 7e7a4874b8fa333d1840cc5f2c0b118d6a0e7c47 (diff) | |
download | tor-b2d487ae2249a307cd23255dbb1a22241eefd6ef.tar.gz tor-b2d487ae2249a307cd23255dbb1a22241eefd6ef.zip |
Merge branch 'ticket31705_v2' into ticket31705_v2_merged
Conflicts:
src/feature/dirparse/authcert_parse.c
src/feature/dirparse/ns_parse.c
src/feature/hs/hs_service.c
src/lib/conf/conftesting.h
src/lib/log/log.h
src/lib/thread/threads.h
src/test/test_options.c
These conflicts were mostly related to autostyle improvements, with
one or two due to doxygen fixes.
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 8d9c3e8eaf..c68e35ab3b 100644 --- a/src/test/test_controller.c +++ b/src/test/test_controller.c @@ -120,6 +120,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) \ @@ -129,6 +130,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)"), @@ -1953,9 +1955,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), |