diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2013-08-07 23:09:24 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2013-08-07 23:09:24 +0000 |
| commit | 7cf0b743aed7161d0846b6fbb0b2abf8a5ee40ab (patch) | |
| tree | b4f80ea36998a7ec13033ad936e43367e7fcf56a | |
| parent | 21c8db11ba8b5a44a219e8d9cb89f82b7eff6023 (diff) | |
| download | bcm5719-llvm-7cf0b743aed7161d0846b6fbb0b2abf8a5ee40ab.tar.gz bcm5719-llvm-7cf0b743aed7161d0846b6fbb0b2abf8a5ee40ab.zip | |
[tests] Make string encoding issues explicit.
llvm-svn: 187929
| -rw-r--r-- | llvm/test/lit.cfg | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/lit.cfg b/llvm/test/lit.cfg index c018674f9b4..dc08c679ca3 100644 --- a/llvm/test/lit.cfg +++ b/llvm/test/lit.cfg @@ -283,11 +283,11 @@ import subprocess try: llc_cmd = subprocess.Popen([os.path.join(llvm_tools_dir, 'llc'), '-version'], stdout = subprocess.PIPE) -except OSError, why: - print "Could not find llc in " + llvm_tools_dir +except OSError: + print("Could not find llc in " + llvm_tools_dir) exit(42) -if re.search(r'with assertions', llc_cmd.stdout.read()): +if re.search(r'with assertions', llc_cmd.stdout.read().decode('ascii')): config.available_features.add('asserts') llc_cmd.wait() |

