[libcxx] r292038 - Work around python3 bytes vs str in libc++ test config

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 14 16:06:02 PST 2017


Author: ericwf
Date: Sat Jan 14 18:06:02 2017
New Revision: 292038

URL: http://llvm.org/viewvc/llvm-project?rev=292038&view=rev
Log:
Work around python3 bytes vs str in libc++ test config

Modified:
    libcxx/trunk/test/libcxx/compiler.py

Modified: libcxx/trunk/test/libcxx/compiler.py
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/compiler.py?rev=292038&r1=292037&r2=292038&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/compiler.py (original)
+++ libcxx/trunk/test/libcxx/compiler.py Sat Jan 14 18:06:02 2017
@@ -287,7 +287,8 @@ class CXXCompiler(object):
         # TODO(EricWF): Are there other flags we need to worry about?
         if '-v' in cmd:
             cmd.remove('-v')
-        out, err, rc = lit.util.executeCommand(cmd, input='#error\n')
+        out, err, rc = lit.util.executeCommand(
+            cmd, input=lit.util.to_bytes('#error\n'))
 
         assert rc != 0
         if flag in err:




More information about the cfe-commits mailing list