Work around python3 bytes vs str in libc++ test config

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@292038 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2017-01-15 00:06:02 +00:00
parent 5cd8a36772
commit f620d224b7

View File

@@ -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: