[libc++] Get rid of pipe in command to check whether verify is supported
authorLouis Dionne <ldionne@apple.com>
Fri, 24 Apr 2020 19:29:42 +0000 (15:29 -0400)
committerLouis Dionne <ldionne@apple.com>
Fri, 24 Apr 2020 19:30:25 +0000 (15:30 -0400)
libcxx/utils/libcxx/test/newformat.py

index a494fb0..ed5da61 100644 (file)
@@ -149,7 +149,7 @@ class CxxStandardLibraryTest(lit.formats.TestFormat):
 
     # 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')