]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
test_options.c: assert that TransProxyType is tested
authorSteven Chamberlain <steven@pyro.eu.org>
Fri, 18 Mar 2016 13:17:18 +0000 (13:17 +0000)
committerNick Mathewson <nickm@torproject.org>
Mon, 21 Mar 2016 13:51:35 +0000 (09:51 -0400)
If a new platform defines USE_TRANSPARENT, ensure that a test runs for
its TransProxyType.

src/test/test_options.c

index 9ea57189ef228896109f588edc6892bbded0b35a..bd00e6105e227e751f48f7dde8ce740e42dab815 100644 (file)
@@ -1102,6 +1102,9 @@ test_options_validate__transproxy(void *ignored)
   tt_assert(!msg);
 #endif
 
+  // Assert that a test has run for some TransProxyType
+  tt_assert(tdata);
+
 #else
   tdata = get_options_test_data("TransPort 127.0.0.1:555\n");