Sfoglia il codice sorgente

test_config.c: log which address should have failed

Nick Mathewson 10 anni fa
parent
commit
c61a472076
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      src/test/test_config.c

+ 2 - 0
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: