[llvm] r187929 - [tests] Make string encoding issues explicit.
Daniel Dunbar
daniel at zuster.org
Wed Aug 7 16:09:24 PDT 2013
Author: ddunbar
Date: Wed Aug 7 18:09:24 2013
New Revision: 187929
URL: http://llvm.org/viewvc/llvm-project?rev=187929&view=rev
Log:
[tests] Make string encoding issues explicit.
Modified:
llvm/trunk/test/lit.cfg
Modified: llvm/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=187929&r1=187928&r2=187929&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Wed Aug 7 18:09:24 2013
@@ -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()
More information about the llvm-commits
mailing list