diff --git a/libcxx/utils/libcxx/test/newformat.py b/libcxx/utils/libcxx/test/newformat.py index a494fb0fbae189..ed5da6184fddf9 100644 --- a/libcxx/utils/libcxx/test/newformat.py +++ b/libcxx/utils/libcxx/test/newformat.py @@ -149,7 +149,7 @@ def _checkBaseSubstitutions(self, substitutions): # Determine whether clang-verify is supported. def _supportsVerify(self, test): - command = "echo | %{cxx} -xc++ - -Werror -fsyntax-only -Xclang -verify-ignore-unexpected" + command = "%{{cxx}} -xc++ {} -Werror -fsyntax-only -Xclang -verify-ignore-unexpected".format(os.devnull) command = lit.TestRunner.applySubstitutions([command], test.config.substitutions, recursion_limit=test.config.recursiveExpansionLimit)[0] devNull = open(os.devnull, 'w')