]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
No new "LEGACY" tests allowed.
authorNick Mathewson <nickm@torproject.org>
Thu, 8 Sep 2011 15:19:06 +0000 (11:19 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 30 Nov 2011 19:08:10 +0000 (14:08 -0500)
src/test/test_config.c

index fd38e2f7b9bd8ab71edb3a0ed0eb56472b4f9052..99d7215bed50229cf8045688b146774addffa937 100644 (file)
 #include "test.h"
 
 static void
-test_config_addressmap(void)
+test_config_addressmap(void *arg)
 {
   char buf[1024];
   char address[256];
   time_t expires = TIME_MAX;
+  (void)arg;
+
   strlcpy(buf, "MapAddress .invalidwildcard.com *.torserver.exit\n" // invalid
           "MapAddress *invalidasterisk.com *.torserver.exit\n" // invalid
           "MapAddress *.google.com *.torserver.exit\n"
@@ -158,14 +160,11 @@ done:
   ;
 }
 
-#define CONFIG_LEGACY(name)                                               \
-  { #name, legacy_test_helper, 0, &legacy_setup, test_config_ ## name }
-
 #define CONFIG_TEST(name, flags)                          \
   { #name, test_config_ ## name, flags, NULL, NULL }
 
 struct testcase_t config_tests[] = {
-  CONFIG_LEGACY(addressmap),
+  CONFIG_TEST(addressmap, 0),
   END_OF_TESTCASES
 };