[TSan] s/uintptr_t/intptr_t in TSan test and enforce stack size limit in one of TSan output tests that somewhy fails otherwise

llvm-svn: 164116
This commit is contained in:
Alexey Samsonov 2012-09-18 09:09:35 +00:00
parent 3040830fcd
commit 848abbd236
2 changed files with 3 additions and 1 deletions

View File

@ -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>

View File

@ -34,7 +34,7 @@ int run_tests(int argc, char **argv) {
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);