]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make display of captured unit test log messages consistent
authorteor <teor2345@gmail.com>
Sun, 19 Feb 2017 12:09:50 +0000 (23:09 +1100)
committerteor <teor2345@gmail.com>
Sun, 19 Feb 2017 12:09:50 +0000 (23:09 +1100)
There was a missing space and an extra colon.

Fixes bug 21510; bugfix on 0.2.9.3-alpha.

changes/bug21510 [new file with mode: 0644]
src/test/log_test_helpers.h

diff --git a/changes/bug21510 b/changes/bug21510
new file mode 100644 (file)
index 0000000..31c3e1a
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes (unit tests):
+    - Make display of captured unit test log messages consistent.
+      Fixes bug 21510; bugfix on 0.2.9.3-alpha.
+
index 922c68b42f171544b1cc0d96e4a3f30330cd1807..19c5a881a469288a4966a491b6e13d0626ebbf76 100644 (file)
@@ -71,14 +71,14 @@ void mock_dump_saved_logs(void);
                                                                         \
     assert_log_predicate(mock_saved_log_has_message_containing(str) &&  \
                          mock_saved_log_n_entries() == 1,               \
-                  "expected log to contain exactly 1 message: " # str); \
+                  "expected log to contain exactly 1 message " # str); \
   } while (0);
 
 #define expect_single_log_msg_containing(str) \
   do {                                                                  \
     assert_log_predicate(mock_saved_log_has_message_containing(str)&&   \
                          mock_saved_log_n_entries() == 1 ,              \
-            "expected log to contain 1 message, containing" # str);     \
+            "expected log to contain 1 message, containing " # str);     \
   } while (0);
 
 #define expect_no_log_msg(str) \