r188042 - [tests] Make string encoding issues explicit.

Daniel Dunbar daniel at zuster.org
Thu Aug 8 17:45:18 PDT 2013


Author: ddunbar
Date: Thu Aug  8 19:45:18 2013
New Revision: 188042

URL: http://llvm.org/viewvc/llvm-project?rev=188042&view=rev
Log:
[tests] Make string encoding issues explicit.

Modified:
    cfe/trunk/test/lit.cfg

Modified: cfe/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/lit.cfg?rev=188042&r1=188041&r2=188042&view=diff
==============================================================================
--- cfe/trunk/test/lit.cfg (original)
+++ cfe/trunk/test/lit.cfg Thu Aug  8 19:45:18 2013
@@ -289,6 +289,7 @@ def get_llc_props(tool):
     # Parse the stdout to get the list of registered targets.
     parse_targets = False
     for line in cmd.stdout:
+        line = line.decode('ascii')
         if parse_targets:
             m = re.match( r'(.*) - ', line)
             if m is not None:





More information about the cfe-commits mailing list