]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix test naming, and fix tests on windows.
authorNick Mathewson <nickm@torproject.org>
Tue, 13 Apr 2021 21:38:31 +0000 (17:38 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 13 Apr 2021 21:38:31 +0000 (17:38 -0400)
This is a bugfix against my fix for #40133, which has not yet
appeared in 0.3.5.

src/test/test_connection.c

index 6f716f5758e9502b503a5757dc862a501d7b8a24..7234d016271b9397b8137a64f85dfc4cbdfe18ea 100644 (file)
@@ -885,9 +885,9 @@ test_failed_orconn_tracker(void *arg)
 #define CONNECTION_TESTCASE(name, fork, setup)                           \
   { #name, test_conn_##name, fork, &setup, NULL }
 
-/* where arg is an expression (constant, variable, compound expression) */
+/* where arg is a string. */
 #define CONNECTION_TESTCASE_ARG(name, fork, setup, arg)                  \
-  { #name "_" #arg, test_conn_##name, fork, &setup, (void *)arg }
+  { #name "_" arg, test_conn_##name, fork, &setup, (void *)arg }
 
 struct testcase_t connection_tests[] = {
   CONNECTION_TESTCASE(get_basic, TT_FORK, test_conn_get_basic_st),