aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_logging.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-20 13:02:05 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-20 15:08:06 -0400
commit5ecd1fec1583b8aa865ac5cae0cece42451395bd (patch)
treef9645884a611826dc811fe159c17fd873b98768b /src/test/test_logging.c
parent8865972a0b18a2fdcf42b55149989d0705c85577 (diff)
downloadtor-5ecd1fec1583b8aa865ac5cae0cece42451395bd.tar.gz
tor-5ecd1fec1583b8aa865ac5cae0cece42451395bd.zip
Move horrible-emergency handling into torerr.[ch]
Previously we had code like this for bad things happening from signal handlers, but it makes sense to use the same logic to handle cases when something is happening at a level too low for log.c to be involved. My raw_assert*() stuff now uses this code.
Diffstat (limited to 'src/test/test_logging.c')
-rw-r--r--src/test/test_logging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_logging.c b/src/test/test_logging.c
index aebfd36068..eaad7ed135 100644
--- a/src/test/test_logging.c
+++ b/src/test/test_logging.c
@@ -3,6 +3,7 @@
#include "orconfig.h"
#include "or/or.h"
+#include "common/torerr.h"
#include "common/torlog.h"
#include "test/test.h"
@@ -170,4 +171,3 @@ struct testcase_t logging_tests[] = {
{ "ratelim", test_ratelim, 0, NULL, NULL },
END_OF_TESTCASES
};
-