Make the llvm-ranlib/help-message.test test pass in unusual configurations
authorDmitri Gribenko <gribozavr@gmail.com>
Thu, 2 Jan 2020 14:18:35 +0000 (15:18 +0100)
committerDmitri Gribenko <gribozavr@gmail.com>
Thu, 2 Jan 2020 14:24:18 +0000 (15:24 +0100)
The version string can be customized by CMake options, so the 'LLVM
version' substring is not guaranteed to appear (see
VersionPrinter::print in llvm/lib/Support/CommandLine.cpp).

llvm/test/tools/llvm-ranlib/help-message.test

index 61620ac..8d8824a 100644 (file)
@@ -14,4 +14,4 @@
 # RUN: llvm-ranlib -Dhv | FileCheck %s --check-prefix=HELP
 
 # HELP: USAGE: llvm-ranlib
-# VERSION: LLVM version
+# VERSION: version