aboutsummaryrefslogtreecommitdiff
path: root/src/test/test.c
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2011-11-09 10:54:00 +0100
committerNick Mathewson <nickm@torproject.org>2011-11-11 11:47:25 -0500
commit38123ffa23355d4607987a9fd0dc7b0595e787a7 (patch)
treefd21df5d3f352a0fb7dcf2bc2870fb237c074156 /src/test/test.c
parent46d236c68428a0fd0f008ec2a34ae08f1640b9b7 (diff)
downloadtor-38123ffa23355d4607987a9fd0dc7b0595e787a7.tar.gz
tor-38123ffa23355d4607987a9fd0dc7b0595e787a7.zip
Fix the bench_{aes,dmap} test functions to work with TT
TT expects them to be named test_bench_{aes,dmap}. Also change the DISABLED macro to reflect that.
Diffstat (limited to 'src/test/test.c')
-rw-r--r--src/test/test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test.c b/src/test/test.c
index aca7f10e60..185bf5a30c 100644
--- a/src/test/test.c
+++ b/src/test/test.c
@@ -1267,7 +1267,7 @@ test_policies(void)
/** Run AES performance benchmarks. */
static void
-bench_aes(void)
+test_bench_aes(void)
{
int len, i;
char *b1, *b2;
@@ -1299,7 +1299,7 @@ bench_aes(void)
/** Run digestmap_t performance benchmarks. */
static void
-bench_dmap(void)
+test_bench_dmap(void)
{
smartlist_t *sl = smartlist_create();
smartlist_t *sl2 = smartlist_create();
@@ -1899,7 +1899,7 @@ const struct testcase_setup_t legacy_setup = {
{ #group "_" #name, legacy_test_helper, 0, &legacy_setup, \
test_ ## group ## _ ## name }
#define DISABLED(name) \
- { #name, legacy_test_helper, TT_SKIP, &legacy_setup, name }
+ { #name, legacy_test_helper, TT_SKIP, &legacy_setup, test_ ## name }
#define FORK(name) \
{ #name, legacy_test_helper, TT_FORK, &legacy_setup, test_ ## name }