[llvm-branch-commits] [compiler-rt] [TySan] Improved compatability for tests (PR #96507)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Nov 12 03:17:33 PST 2024


================
@@ -18,7 +18,7 @@ int main(void) {
 
   // CHECK:      TypeSanitizer: type-aliasing-violation on address
   // CHECK-NEXT: WRITE of size 8 at {{.+}} with type double accesses an existing object of type float
-  // CHECK-NEXT:   in main violation-pr45282.c:25
+  // CHECK-NEXT:   in main {{.*violation-pr45282.c:25.*}}
----------------
gbMattN wrote:

Checked and the trailing .* can indeed be left out, I'll change that

Compiler-rt tests tend to have the file name in the check lines because you want to make sure that the sanitizer correctly informs the user where the problem is.

https://github.com/llvm/llvm-project/pull/96507


More information about the llvm-branch-commits mailing list