[tor-commits] [tor/master] test_options.c: assert that	TransProxyType is tested
    nickm at torproject.org 
    nickm at torproject.org
       
    Mon Mar 21 13:51:46 UTC 2016
    
    
  
commit a42938c07670162863decc952b4d73681d9302d6
Author: Steven Chamberlain <steven at pyro.eu.org>
Date:   Fri Mar 18 13:17:18 2016 +0000
    test_options.c: assert that TransProxyType is tested
    
    If a new platform defines USE_TRANSPARENT, ensure that a test runs for
    its TransProxyType.
---
 src/test/test_options.c | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/src/test/test_options.c b/src/test/test_options.c
index 9ea5718..bd00e61 100644
--- a/src/test/test_options.c
+++ b/src/test/test_options.c
@@ -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");
 
    
    
More information about the tor-commits
mailing list