[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] test_config.c: log which address should have failed



commit c61a472076bb287f94c843f1bddf5e1604014dfe
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Mon Feb 3 16:21:32 2014 -0500

    test_config.c: log which address should have failed
---
 src/test/test_config.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/test/test_config.c b/src/test/test_config.c
index 6a285db..3a1b6d7 100644
--- a/src/test/test_config.c
+++ b/src/test/test_config.c
@@ -358,6 +358,8 @@ static void
 bad_bridge_line_test(const char *string)
 {
   bridge_line_t *bridge_line = parse_bridge_line(string);
+  if (bridge_line)
+    TT_FAIL(("%s was supposed to fail, but it didn't.", string));
   test_assert(!bridge_line);
 
  done:

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits