[PATCH] D19427: Fix test on Windows

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 22 14:44:21 PDT 2016


vitalybuka updated this revision to Diff 54729.
vitalybuka added a comment.

Fixed expectation to only check operator()


http://reviews.llvm.org/D19427

Files:
  test/asan/TestCases/use-after-scope-capture.cc

Index: test/asan/TestCases/use-after-scope-capture.cc
===================================================================
--- test/asan/TestCases/use-after-scope-capture.cc
+++ test/asan/TestCases/use-after-scope-capture.cc
@@ -1,6 +1,5 @@
 // RUN: %clangxx_asan -std=c++11 -O1 -mllvm -asan-use-after-scope=1 %s -o %t && \
 // RUN:     not %run %t 2>&1 | FileCheck %s
-// XFAIL: win32
 
 #include <functional>
 
@@ -11,7 +10,7 @@
     f = [&x]() {
       return x;  // BOOM
       // CHECK: ERROR: AddressSanitizer: stack-use-after-scope
-      // CHECK: #0 0x{{.*}} in {{.*}}::operator()(){{.*}}.cc:[[@LINE-2]]
+      // CHECK: #0 0x{{.*}} in {{.*}}::operator(){{.*}}.cc:[[@LINE-2]]
     };
   }
   return f();  // BOOM


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19427.54729.patch
Type: text/x-patch
Size: 721 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160422/c9f125a0/attachment.bin>


More information about the llvm-commits mailing list