https://github.com/aeubanks created 
https://github.com/llvm/llvm-project/pull/152345

These tests are failing on our bots presumably due to these missing %T 
replacements.

>From 47df05b72b503597d8c4e02fc3c0014b2e9d2ec7 Mon Sep 17 00:00:00 2001
From: Arthur Eubanks <[email protected]>
Date: Wed, 6 Aug 2025 17:26:56 +0000
Subject: [PATCH] [clang-tools-extra][test] Fix missed %T removals from #151538

These tests are failing on our bots presumably due to these missing %T 
replacements.
---
 clang-tools-extra/test/clang-tidy/infrastructure/diagnostic.cpp | 2 +-
 .../test/clang-tidy/infrastructure/export-relpath.cpp           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/clang-tools-extra/test/clang-tidy/infrastructure/diagnostic.cpp 
b/clang-tools-extra/test/clang-tidy/infrastructure/diagnostic.cpp
index 610d1dadfdb56..a9d140bc9318e 100644
--- a/clang-tools-extra/test/clang-tidy/infrastructure/diagnostic.cpp
+++ b/clang-tools-extra/test/clang-tidy/infrastructure/diagnostic.cpp
@@ -15,7 +15,7 @@
 // use it after failing to parse commands from the command line:
 //
 // RUN: mkdir -p %t.dir/diagnostics/
-// RUN: echo '[{"directory": "%/t.dir/diagnostics/","command": "clang++ 
-fan-option-from-compilation-database -c %/T/diagnostics/input.cpp", "file": 
"%/T/diagnostics/input.cpp"}]' > %t.dir/diagnostics/compile_commands.json
+// RUN: echo '[{"directory": "%/t.dir/diagnostics/","command": "clang++ 
-fan-option-from-compilation-database -c %/t.dir/diagnostics/input.cpp", 
"file": "%/t.dir/diagnostics/input.cpp"}]' > 
%t.dir/diagnostics/compile_commands.json
 // RUN: cat %s > %t.dir/diagnostics/input.cpp
 // RUN: not clang-tidy -checks='-*,modernize-use-override' 
%t.dir/diagnostics/nonexistent.cpp -- 2>&1 | FileCheck -check-prefix=CHECK1 
-implicit-check-not='{{warning:|error:}}' %s
 // RUN: not clang-tidy 
-checks='-*,clang-diagnostic-*,google-explicit-constructor' 
%t.dir/diagnostics/input.cpp -- -fan-unknown-option 2>&1 | FileCheck 
-check-prefix=CHECK2 -implicit-check-not='{{warning:|error:}}' %s
diff --git 
a/clang-tools-extra/test/clang-tidy/infrastructure/export-relpath.cpp 
b/clang-tools-extra/test/clang-tidy/infrastructure/export-relpath.cpp
index 5fd7303173e1c..051f008ad3f3a 100644
--- a/clang-tools-extra/test/clang-tidy/infrastructure/export-relpath.cpp
+++ b/clang-tools-extra/test/clang-tidy/infrastructure/export-relpath.cpp
@@ -2,7 +2,7 @@
 // RUN: rm -rf %t.dir/clang-tidy/export-relpath
 // RUN: mkdir -p %t.dir/clang-tidy/export-relpath/subdir
 // RUN: cp %s %t.dir/clang-tidy/export-relpath/subdir/source.cpp
-// RUN: echo '[{ "directory": "%/t.dir/clang-tidy/export-relpath/subdir", 
"command": "clang++ source.cpp", "file": 
"%/T/clang-tidy/export-relpath/subdir/source.cpp"}]' > 
%t.dir/clang-tidy/export-relpath/subdir/compile_commands.json
+// RUN: echo '[{ "directory": "%/t.dir/clang-tidy/export-relpath/subdir", 
"command": "clang++ source.cpp", "file": 
"%/t.dir/clang-tidy/export-relpath/subdir/source.cpp"}]' > 
%t.dir/clang-tidy/export-relpath/subdir/compile_commands.json
 //
 // Check that running clang-tidy in './subdir' and storing results
 // in './fixes.yaml' works as expected.

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to