]> granicus.if.org Git - llvm/commitdiff
Quote '?' in llvm-rc test
authorReid Kleckner <rnk@google.com>
Wed, 26 Jul 2017 16:25:48 +0000 (16:25 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 26 Jul 2017 16:25:48 +0000 (16:25 +0000)
Summary:
Bash interperets the '?' character as matching an arbitrary character.
On systems that have a file or directory with exactly one character in
their root directory, '/?' gets reinterpreted into that pathname, which
fails to match the expected Help text for llvm-rc.
This patch quotes the '/?' to avoid that edge case.

Reviewers: mnbvmar, ecbeckmann, rnk

Reviewed By: rnk

Subscribers: dyung, ruiu, llvm-commits

Differential Revision: https://reviews.llvm.org/D35852

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309133 91177308-0d34-0410-b5e6-96231b3b80d8

test/tools/llvm-rc/helpmsg.test

index f0d4015e91c69ec076c1d081075be1ae4a73d783..045568978f6216b7044150bb27df779b077dc770 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llvm-rc /h > %t1
-; RUN: llvm-rc /? > %t2
+; RUN: llvm-rc '/?' > %t2
 ; RUN: diff %t1 %t2
 ; RUN: FileCheck -input-file=%t1 %s