[llvm-commits] [compiler-rt] r164116 - in /compiler-rt/trunk/lib/tsan: lit_tests/sleep_sync.cc tests/rtl/tsan_test.cc

Alexey Samsonov samsonov at google.com
Tue Sep 18 02:09:35 PDT 2012


Author: samsonov
Date: Tue Sep 18 04:09:35 2012
New Revision: 164116

URL: http://llvm.org/viewvc/llvm-project?rev=164116&view=rev
Log:
[TSan] s/uintptr_t/intptr_t in TSan test and enforce stack size limit in one of TSan output tests that somewhy fails otherwise

Modified:
    compiler-rt/trunk/lib/tsan/lit_tests/sleep_sync.cc
    compiler-rt/trunk/lib/tsan/tests/rtl/tsan_test.cc

Modified: compiler-rt/trunk/lib/tsan/lit_tests/sleep_sync.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/lit_tests/sleep_sync.cc?rev=164116&r1=164115&r2=164116&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/lit_tests/sleep_sync.cc (original)
+++ compiler-rt/trunk/lib/tsan/lit_tests/sleep_sync.cc Tue Sep 18 04:09:35 2012
@@ -1,3 +1,5 @@
+// FIXME: Understand why this test fails if TSan is re-execed.
+// RUN: ulimit -s 8192
 // RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s
 #include <pthread.h>
 #include <unistd.h>

Modified: compiler-rt/trunk/lib/tsan/tests/rtl/tsan_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/tests/rtl/tsan_test.cc?rev=164116&r1=164115&r2=164116&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/tests/rtl/tsan_test.cc (original)
+++ compiler-rt/trunk/lib/tsan/tests/rtl/tsan_test.cc Tue Sep 18 04:09:35 2012
@@ -34,7 +34,7 @@
   TestMutexBeforeInit();  // Mutexes must be usable before __tsan_init();
   __tsan_init();
   __tsan_func_entry(__builtin_return_address(0));
-  __tsan_func_entry((void*)((uintptr_t)&run_tests + 1));
+  __tsan_func_entry((void*)((intptr_t)&run_tests + 1));
 
   testing::GTEST_FLAG(death_test_style) = "threadsafe";
   testing::InitGoogleTest(&argc, argv);





More information about the llvm-commits mailing list