]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix the bench_{aes,dmap} test functions to work with TT
authorSebastian Hahn <sebastian@torproject.org>
Wed, 9 Nov 2011 09:54:00 +0000 (10:54 +0100)
committerNick Mathewson <nickm@torproject.org>
Fri, 11 Nov 2011 16:47:25 +0000 (11:47 -0500)
TT expects them to be named test_bench_{aes,dmap}. Also change the
DISABLED macro to reflect that.

changes/test_bench [new file with mode: 0644]
src/test/test.c

diff --git a/changes/test_bench b/changes/test_bench
new file mode 100644 (file)
index 0000000..8ae895b
--- /dev/null
@@ -0,0 +1,5 @@
+  o Minor bugfixes:
+    - Rename the bench_{aes,dmap} functions to test_*, so that tinytest can
+      pick them up when the tests aren't disabled. Bugfix on 0.2.2.4-alpha
+      which introduced tinytest.
+
index aca7f10e6083ccc384d1d5e23653fa52fdec7013..185bf5a30c9de920d2e222832a6b351710789f61 100644 (file)
@@ -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 }