[compiler-rt] r173815 - [tsan] Fix checks for siginfo_t in tests
Will Dietz
wdietz2 at illinois.edu
Tue Jan 29 10:29:34 PST 2013
Author: wdietz2
Date: Tue Jan 29 12:29:34 2013
New Revision: 173815
URL: http://llvm.org/viewvc/llvm-project?rev=173815&view=rev
Log:
[tsan] Fix checks for siginfo_t in tests
Modified:
compiler-rt/trunk/lib/tsan/lit_tests/signal_errno.cc
compiler-rt/trunk/lib/tsan/lit_tests/signal_malloc.cc
Modified: compiler-rt/trunk/lib/tsan/lit_tests/signal_errno.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/lit_tests/signal_errno.cc?rev=173815&r1=173814&r2=173815&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/lit_tests/signal_errno.cc (original)
+++ compiler-rt/trunk/lib/tsan/lit_tests/signal_errno.cc Tue Jan 29 12:29:34 2013
@@ -38,5 +38,5 @@ int main() {
}
// CHECK: WARNING: ThreadSanitizer: signal handler spoils errno
-// CHECK: #0 handler(int, siginfo*, void*) {{.*}}signal_errno.cc
+// CHECK: #0 handler(int, siginfo{{(_t)?}}*, void*) {{.*}}signal_errno.cc
Modified: compiler-rt/trunk/lib/tsan/lit_tests/signal_malloc.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/lit_tests/signal_malloc.cc?rev=173815&r1=173814&r2=173815&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/lit_tests/signal_malloc.cc (original)
+++ compiler-rt/trunk/lib/tsan/lit_tests/signal_malloc.cc Tue Jan 29 12:29:34 2013
@@ -8,7 +8,7 @@
static void handler(int, siginfo_t*, void*) {
// CHECK: WARNING: ThreadSanitizer: signal-unsafe call inside of a signal
// CHECK: #0 malloc
- // CHECK: #1 handler(int, siginfo*, void*) {{.*}}signal_malloc.cc:[[@LINE+1]]
+ // CHECK: #1 handler(int, siginfo{{(_t)?}}*, void*) {{.*}}signal_malloc.cc:[[@LINE+1]]
volatile char *p = (char*)malloc(1);
p[0] = 0;
free((void*)p);
More information about the llvm-commits
mailing list