[compiler-rt] r180097 - [ASan] Make wait.cc more Darwin-compatible: fix the header name and the CHECK patterns.
Alexander Potapenko
glider at google.com
Tue Apr 23 05:36:37 PDT 2013
Author: glider
Date: Tue Apr 23 07:36:37 2013
New Revision: 180097
URL: http://llvm.org/viewvc/llvm-project?rev=180097&view=rev
Log:
[ASan] Make wait.cc more Darwin-compatible: fix the header name and the CHECK patterns.
Modified:
compiler-rt/trunk/lib/asan/lit_tests/wait.cc
Modified: compiler-rt/trunk/lib/asan/lit_tests/wait.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/wait.cc?rev=180097&r1=180096&r2=180097&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/wait.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/wait.cc Tue Apr 23 07:36:37 2013
@@ -35,8 +35,8 @@
#include <assert.h>
+#include <sys/wait.h>
#include <unistd.h>
-#include <wait.h>
int main(int argc, char **argv) {
pid_t pid = fork();
@@ -67,9 +67,9 @@ int main(int argc, char **argv) {
// CHECK: stack-buffer-overflow
// CHECK: {{WRITE of size .* at 0x.* thread T0}}
// CHECK: {{in .*wait}}
- // CHECK: {{in main .*wait.cc:}}
+ // CHECK: {{in _?main .*wait.cc:}}
// CHECK: is located in stack of thread T0 at offset
- // CHECK: in main
+ // CHECK: {{in _?main}}
return res != -1;
}
// child
More information about the llvm-commits
mailing list