[llvm] r337092 - Attempt to get test/tools/llvm-lib/help.test passing on sanitizer-x86_64-linux-fast

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 14 04:33:34 PDT 2018


Author: nico
Date: Sat Jul 14 04:33:33 2018
New Revision: 337092

URL: http://llvm.org/viewvc/llvm-project?rev=337092&view=rev
Log:
Attempt to get test/tools/llvm-lib/help.test passing on sanitizer-x86_64-linux-fast

The bot has a /b directory, so /? matches against that and gets expanded to it.

(Thanks to Hans's r187366, which solved the same problem for clang-cl a while
ago and which saved me much head scratching.)

Modified:
    llvm/trunk/test/tools/llvm-lib/help.test

Modified: llvm/trunk/test/tools/llvm-lib/help.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-lib/help.test?rev=337092&r1=337091&r2=337092&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-lib/help.test (original)
+++ llvm/trunk/test/tools/llvm-lib/help.test Sat Jul 14 04:33:33 2018
@@ -1,3 +1,6 @@
-# RUN: llvm-lib /? | FileCheck %s
+# Note: we have to quote the /? option, otherwise some shells will try to
+# expand the ? into a one-letter filename in the root directory, and make
+# the test fail is such a file or directory exists.
+# RUN: llvm-lib "/?" | FileCheck %s
 
 CHECK: OVERVIEW: LLVM Lib




More information about the llvm-commits mailing list