Author: Aaron Ballman Date: 2023-01-24T15:37:53-05:00 New Revision: 0647f4a77a2f9aab84c961982193bea1a9eb1585
URL: https://github.com/llvm/llvm-project/commit/0647f4a77a2f9aab84c961982193bea1a9eb1585 DIFF: https://github.com/llvm/llvm-project/commit/0647f4a77a2f9aab84c961982193bea1a9eb1585.diff LOG: Drop a path component from the sarif diagnostics test; NFC The test currently expects to be run in a directory named 'clang' but that's not valid for our release tarballs. We don't actually care what base directory the test is run from, so this removes the path component entirely. Added: Modified: clang/test/Frontend/sarif-diagnostics.cpp Removed: ################################################################################ diff --git a/clang/test/Frontend/sarif-diagnostics.cpp b/clang/test/Frontend/sarif-diagnostics.cpp index 3a35131cdb004..9a4e686389a2e 100644 --- a/clang/test/Frontend/sarif-diagnostics.cpp +++ b/clang/test/Frontend/sarif-diagnostics.cpp @@ -32,7 +32,7 @@ void f1(t1 x, t1 y) { // Omit exact length of this file // CHECK: ,"location":{"index":0,"uri":"file:// // Omit filepath to llvm project directory -// CHECK: clang/test/Frontend/sarif-diagnostics.cpp"},"mimeType":"text/plain","roles":["resultFile"]}],"columnKind":"unicodeCodePoints","results": +// CHECK: test/Frontend/sarif-diagnostics.cpp"},"mimeType":"text/plain","roles":["resultFile"]}],"columnKind":"unicodeCodePoints","results": // CHECK: [{"level":"error","locations":[{"physicalLocation":{"artifactLocation":{"index":0,"uri":"file:// // CHECK: {"endColumn":1,"startColumn":1,"startLine":12}}}],"message":{"text":"'main' must return 'int'"},"ruleId":"{{[0-9]+}}","ruleIndex":0}, // CHECK: {"level":"error","locations":[{"physicalLocation":{"artifactLocation":{"index":0,"uri":"file:// _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits