Author: gulfemsavrun Date: 2026-06-10T10:47:13-07:00 New Revision: 1b06b0b5795523e0b14b9f5ff9756bf78eed5567
URL: https://github.com/llvm/llvm-project/commit/1b06b0b5795523e0b14b9f5ff9756bf78eed5567 DIFF: https://github.com/llvm/llvm-project/commit/1b06b0b5795523e0b14b9f5ff9756bf78eed5567.diff LOG: [clang][test] Fix cl-pathmap.c test failure on mac (#203043) Add '--' before '%s' in the preprocessor test to prevent the path (which typically starts with '/Users' on macOS) from being interpreted as an option. Added: Modified: clang/test/Preprocessor/cl-pathmap.c Removed: ################################################################################ diff --git a/clang/test/Preprocessor/cl-pathmap.c b/clang/test/Preprocessor/cl-pathmap.c index 46a1c3f892db6..b12def55120f5 100644 --- a/clang/test/Preprocessor/cl-pathmap.c +++ b/clang/test/Preprocessor/cl-pathmap.c @@ -7,7 +7,7 @@ // CHECK-REPRODUCABLE-NOT: filename: //NOTE: currently . and .\ just gets eliminated after mapping -// RUN: %clang_cl -E /pathmap:%p=. %s | FileCheck %s --check-prefix CHECK-SIMPLE +// RUN: %clang_cl -E /pathmap:%p=. -- %s | FileCheck %s --check-prefix CHECK-SIMPLE // CHECK-SIMPLE: filename: "cl-pathmap.c" // CHECK-SIMPLE-NOT: filename: filename: __FILE__ _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
