aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_shared_random.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-08-22 10:31:44 -0400
committerNick Mathewson <nickm@torproject.org>2018-08-22 10:55:55 -0400
commit8148c0717dc6b05b0cda18ade94e03ed947bc7a3 (patch)
treeff5a5879716e497c9bcc4ce754ef03ef4efde532 /src/test/test_shared_random.c
parent5245a296c58eb8aba712e94a78d5bcaa2a2f25fb (diff)
downloadtor-8148c0717dc6b05b0cda18ade94e03ed947bc7a3.tar.gz
tor-8148c0717dc6b05b0cda18ade94e03ed947bc7a3.zip
Change log_test_helpers macros to use printf, not pasting
This ensures that our test failure messages actually tell us what strings Tor was expecting. I will need this to debug some test failures.
Diffstat (limited to 'src/test/test_shared_random.c')
-rw-r--r--src/test/test_shared_random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_shared_random.c b/src/test/test_shared_random.c
index d2defdf680..4137877e67 100644
--- a/src/test/test_shared_random.c
+++ b/src/test/test_shared_random.c
@@ -1284,7 +1284,7 @@ test_keep_commit(void *arg)
expect_log_msg_containing("doesn't match the commit value.");
expect_log_msg_containing("has an invalid reveal value.");
assert_log_predicate(mock_saved_log_n_entries() == 2,
- "expected 2 log entries");
+ ("expected 2 log entries"));
teardown_capture_of_logs();
memcpy(commit->hashed_reveal, place_holder.hashed_reveal,
sizeof(commit->hashed_reveal));