[tor-commits] [tor/master] Remove redundant definitions of expect_{no_, }log_msg()

nickm at torproject.org nickm at torproject.org
Thu Sep 8 14:33:25 UTC 2016


commit ae3ea9a7a1ff0733d6e80734cd984495aeac6247
Author: Nick Mathewson <nickm at torproject.org>
Date:   Thu Sep 8 10:32:59 2016 -0400

    Remove redundant definitions of expect_{no_,}log_msg()
---
 src/test/test_options.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/test/test_options.c b/src/test/test_options.c
index 87f8966..2748f42 100644
--- a/src/test/test_options.c
+++ b/src/test/test_options.c
@@ -394,14 +394,6 @@ free_options_test_data(options_test_data_t *td)
   tor_free(td);
 }
 
-#define expect_log_msg(str) \
-  tt_assert_msg(mock_saved_log_has_message(str), \
-                "expected log to contain " # str);
-
-#define expect_no_log_msg(str)                      \
-  tt_assert_msg(!mock_saved_log_has_message(str), \
-                "expected log to not contain " # str);
-
 static void
 test_options_validate__uname_for_server(void *ignored)
 {





More information about the tor-commits mailing list