mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-23 01:18:52 +08:00
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:
@@ -287,7 +287,8 @@ class CXXCompiler(object):
|
|||||||
# TODO(EricWF): Are there other flags we need to worry about?
|
# TODO(EricWF): Are there other flags we need to worry about?
|
||||||
if '-v' in cmd:
|
if '-v' in cmd:
|
||||||
cmd.remove('-v')
|
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
|
assert rc != 0
|
||||||
if flag in err:
|
if flag in err:
|
||||||
|
Reference in New Issue
Block a user