[clang] Update remaining tests for usage of CLANG_RESOURCE_DIR (PR #202475)
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 9 08:20:42 PDT 2026
================
@@ -5,10 +5,10 @@
// RUN: %clang_cc1 -triple x86_64-unknown-unknown \
// RUN: -iprefix %t.tmps/ -iwithprefix second \
// RUN: -isystem %t.tmps/first -v %s 2> %t.out
-// RUN: FileCheck %s < %t.out
+// RUN: FileCheck %s -DRESOURCE_DIR=%clang-resource-dir < %t.out
// CHECK: #include <...> search starts here:
// CHECK: {{.*}}.tmps/first
-// CHECK: {{/|\\}}clang{{/|\\}}{{[.0-9]+}}{{/|\\}}include
+// CHECK: [[RESOURCE_DIR]]{{[\/]}}include
----------------
yxsamliu wrote:
This separator pattern only matches `/`. Since this test can run on Windows too, should this keep accepting both `/` and `\`?
https://github.com/llvm/llvm-project/pull/202475
More information about the cfe-commits
mailing list