]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix crash-test for assertion failure
authorNick Mathewson <nickm@torproject.org>
Thu, 23 Apr 2015 14:25:16 +0000 (10:25 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 23 Apr 2015 14:25:16 +0000 (10:25 -0400)
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

src/test/test_bt_cl.c

index 0fa0cd5c0afab35d548c064ed1be502d6386260e..01c621eb0ed418ba67b7d401caefe81372c8b1cc 100644 (file)
@@ -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"