aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_crypto.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_crypto.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_crypto.c')
-rw-r--r--src/test/test_crypto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_crypto.c b/src/test/test_crypto.c
index 178a9a5097..7288e6ee89 100644
--- a/src/test/test_crypto.c
+++ b/src/test/test_crypto.c
@@ -2971,6 +2971,7 @@ test_crypto_failure_modes(void *arg)
;
}
+#ifndef COCCI
#define CRYPTO_LEGACY(name) \
{ #name, test_crypto_ ## name , 0, NULL, NULL }
@@ -2981,6 +2982,7 @@ test_crypto_failure_modes(void *arg)
#define ED25519_TEST(name, fl) \
ED25519_TEST_ONE(name, (fl), "donna"), \
ED25519_TEST_ONE(name, (fl), "ref10")
+#endif
struct testcase_t crypto_tests[] = {
CRYPTO_LEGACY(formats),