[compiler-rt] r200002 - tsan: fix test relying on assert

Dmitry Vyukov dvyukov at google.com
Fri Jan 24 06:14:28 PST 2014


Author: dvyukov
Date: Fri Jan 24 08:14:28 2014
New Revision: 200002

URL: http://llvm.org/viewvc/llvm-project?rev=200002&view=rev
Log:
tsan: fix test relying on assert


Modified:
    compiler-rt/trunk/lib/tsan/lit_tests/sigsuspend.cc

Modified: compiler-rt/trunk/lib/tsan/lit_tests/sigsuspend.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/lit_tests/sigsuspend.cc?rev=200002&r1=200001&r2=200002&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/lit_tests/sigsuspend.cc (original)
+++ compiler-rt/trunk/lib/tsan/lit_tests/sigsuspend.cc Fri Jan 24 08:14:28 2014
@@ -1,4 +1,10 @@
 // RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s
+
+// Always enable asserts.
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+
 #include <assert.h>
 #include <stdlib.h>
 #include <signal.h>





More information about the llvm-commits mailing list