aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_bt_cl.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-04-23 10:25:16 -0400
committerNick Mathewson <nickm@torproject.org>2015-04-23 10:25:16 -0400
commit9b6e57290fad73d968d12398c018f16b345f2c23 (patch)
tree53855588abb49d5dbea8806f90abe43408f53f3d /src/test/test_bt_cl.c
parentd54b17f479e6114f7443f8f62cac9323251e370a (diff)
downloadtor-9b6e57290fad73d968d12398c018f16b345f2c23.tar.gz
tor-9b6e57290fad73d968d12398c018f16b345f2c23.zip
Fix crash-test for assertion failure
When we made assertions not get compiled in for the coverage case, we missed one case where, for our tests, we really DO want to have an assertion fail: the backtrace test. Bugfix on 1228dd293b60a8eaab03472fa29428c5e2752c44; bug not in any released tor
Diffstat (limited to 'src/test/test_bt_cl.c')
-rw-r--r--src/test/test_bt_cl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_bt_cl.c b/src/test/test_bt_cl.c
index 0fa0cd5c0a..01c621eb0e 100644
--- a/src/test/test_bt_cl.c
+++ b/src/test/test_bt_cl.c
@@ -5,6 +5,8 @@
#include <stdio.h>
#include <stdlib.h>
+/* To prevent 'assert' from going away. */
+#undef TOR_COVERAGE
#include "or.h"
#include "util.h"
#include "backtrace.h"