Browse Source

Make display of captured unit test log messages consistent

There was a missing space and an extra colon.

Fixes bug 21510; bugfix on 0.2.9.3-alpha.
teor 7 years ago
parent
commit
7a65abf566
2 changed files with 6 additions and 2 deletions
  1. 4 0
      changes/bug21510
  2. 2 2
      src/test/log_test_helpers.h

+ 4 - 0
changes/bug21510

@@ -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.
+

+ 2 - 2
src/test/log_test_helpers.h

@@ -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) \