aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_logging.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-07-29 21:56:31 -0400
committerNick Mathewson <nickm@torproject.org>2013-11-18 10:43:15 -0500
commit56e3f056e9a03015aa55392a8028e2cbe097a0fb (patch)
tree041021d07c4da05f947d64aed5b3a4a74243918d /src/test/test_logging.c
parent0cf234317f4dd6395490f24f12a7d35a480ddf11 (diff)
downloadtor-56e3f056e9a03015aa55392a8028e2cbe097a0fb.tar.gz
tor-56e3f056e9a03015aa55392a8028e2cbe097a0fb.zip
Tests for backtrace.c
These need to be a separate executable, since the point of backtrace.c is that it can crash and write stuff.
Diffstat (limited to 'src/test/test_logging.c')
-rw-r--r--src/test/test_logging.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_logging.c b/src/test/test_logging.c
index 4111a46eb9..7e558f83b1 100644
--- a/src/test/test_logging.c
+++ b/src/test/test_logging.c
@@ -96,6 +96,8 @@ test_sigsafe_err(void *arg)
close(STDERR_FILENO);
log_err(LD_BUG, "Say, this isn't too cool.");
tor_log_err_sigsafe("Minimal.\n", NULL);
+
+ set_log_time_granularity(100*1000);
tor_log_err_sigsafe("Testing any ",
"attempt to manually log ",
"from a signal.\n",