summaryrefslogtreecommitdiff
path: root/lib/tsan/lit_tests
diff options
context:
space:
mode:
authorWill Dietz <wdietz2@illinois.edu>2013-01-29 18:29:34 +0000
committerWill Dietz <wdietz2@illinois.edu>2013-01-29 18:29:34 +0000
commiteb41768d814383b007b3cf8effb61fe0b1c68236 (patch)
tree12e44a083ad91fa3e3d4d4dd19c2af3a79717e80 /lib/tsan/lit_tests
parent12c46937db2a5ab9237ce314c3f3a83636e8a575 (diff)
downloadcompiler-rt-eb41768d814383b007b3cf8effb61fe0b1c68236.tar.gz
[tsan] Fix checks for siginfo_t in tests
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173815 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/lit_tests')
-rw-r--r--lib/tsan/lit_tests/signal_errno.cc2
-rw-r--r--lib/tsan/lit_tests/signal_malloc.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/tsan/lit_tests/signal_errno.cc b/lib/tsan/lit_tests/signal_errno.cc
index af9ccce90..6ef7374bf 100644
--- a/lib/tsan/lit_tests/signal_errno.cc
+++ b/lib/tsan/lit_tests/signal_errno.cc
@@ -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
diff --git a/lib/tsan/lit_tests/signal_malloc.cc b/lib/tsan/lit_tests/signal_malloc.cc
index cee997cdb..d1fc0f476 100644
--- a/lib/tsan/lit_tests/signal_malloc.cc
+++ b/lib/tsan/lit_tests/signal_malloc.cc
@@ -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);