aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_util_process.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-09-08 14:39:20 -0400
committerNick Mathewson <nickm@torproject.org>2016-09-08 14:39:20 -0400
commitb0a9e54705d16d08ae7aff272492832dbb35646d (patch)
tree82064efbdc8c3ed2151c9783cbf6aab44e565df1 /src/test/test_util_process.c
parentd0fe86f39ebcc9b2e17ee3b7fb638e34c2133418 (diff)
downloadtor-b0a9e54705d16d08ae7aff272492832dbb35646d.tar.gz
tor-b0a9e54705d16d08ae7aff272492832dbb35646d.zip
Resolve more BUG warnings in the unit tests
Diffstat (limited to 'src/test/test_util_process.c')
-rw-r--r--src/test/test_util_process.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/test_util_process.c b/src/test/test_util_process.c
index 45c22ef47f..6add374c33 100644
--- a/src/test/test_util_process.c
+++ b/src/test/test_util_process.c
@@ -26,7 +26,7 @@ test_util_process_set_waitpid_callback(void *ignored)
{
(void)ignored;
waitpid_callback_t *res1 = NULL, *res2 = NULL;
- int previous_log = setup_capture_of_logs(LOG_WARN);
+ int previous_log = setup_full_capture_of_logs(LOG_WARN);
pid_t pid = (pid_t)42;
res1 = set_waitpid_callback(pid, temp_callback, NULL);
@@ -34,7 +34,8 @@ test_util_process_set_waitpid_callback(void *ignored)
res2 = set_waitpid_callback(pid, temp_callback, NULL);
tt_assert(res2);
- expect_log_msg("Replaced a waitpid monitor on pid 42. That should be "
+ expect_single_log_msg(
+ "Replaced a waitpid monitor on pid 42. That should be "
"impossible.\n");
done: