[clang] 174e796 - [llvm-rc] Fix a new test to disambiguate macOS paths like /Users/... from options starting with a slash

Martin Storsjö via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 21 03:34:41 PDT 2021


Author: Martin Storsjö
Date: 2021-04-21T13:34:33+03:00
New Revision: 174e796c7d41e720e2a78e3de451b893d9e3a43f

URL: https://github.com/llvm/llvm-project/commit/174e796c7d41e720e2a78e3de451b893d9e3a43f
DIFF: https://github.com/llvm/llvm-project/commit/174e796c7d41e720e2a78e3de451b893d9e3a43f.diff

LOG: [llvm-rc] Fix a new test to disambiguate macOS paths like /Users/... from options starting with a slash

This should fix test failures on macOS.

Added: 
    

Modified: 
    clang/test/Preprocessor/llvm-rc.rc

Removed: 
    


################################################################################
diff  --git a/clang/test/Preprocessor/llvm-rc.rc b/clang/test/Preprocessor/llvm-rc.rc
index 799bf347dbee..f08fdd0506bb 100644
--- a/clang/test/Preprocessor/llvm-rc.rc
+++ b/clang/test/Preprocessor/llvm-rc.rc
@@ -1,4 +1,4 @@
-// RUN: llvm-rc -v -i%p/Inputs -Fo%t.res %s
+// RUN: llvm-rc -v -i%p/Inputs -Fo%t.res -- %s
 // RUN: llvm-readobj %t.res | FileCheck %s
 // CHECK: Resource type (int): RCDATA (ID 10)
 // CHECK: Resource name (int): 42


        


More information about the cfe-commits mailing list