[clang] [clang] Rewrite tests relying on shell environment variable features (PR #156904)

Paul Kirth via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 4 09:48:19 PDT 2025


================
@@ -10,7 +8,9 @@
 // RUN: echo "@subdir/cfg-s2" > %t/workdir/cfg-1
 // RUN: echo "-Wundefined-var-template" > %t/workdir/subdir/cfg-s2
 //
-// RUN: ( cd %t && %clang --config=workdir/cfg-1 -c -### %s 2>&1 | FileCheck %s -check-prefix CHECK-REL )
+// RUN: pushd %t
+// RUN: %clang --config=workdir/cfg-1 -c -### %s 2>&1 | FileCheck %s -check-prefix CHECK-REL
+// RUN: popd
 //
 // CHECK-REL: Configuration file: {{.*}}/workdir/cfg-1
----------------
ilovepi wrote:

I think this is failing due to the use of `/` on windows.

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


More information about the cfe-commits mailing list