Drop a path component from the sarif diagnostics test; NFC
authorAaron Ballman <aaron@aaronballman.com>
Tue, 24 Jan 2023 20:35:36 +0000 (15:35 -0500)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 24 Jan 2023 20:37:53 +0000 (15:37 -0500)
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.

clang/test/Frontend/sarif-diagnostics.cpp

index 3a35131..9a4e686 100644 (file)
@@ -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://