]> granicus.if.org Git - clang/commitdiff
[tests] Reapply r188354, ensure subsitution string is ascii.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 14 Aug 2013 16:32:20 +0000 (16:32 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 14 Aug 2013 16:32:20 +0000 (16:32 +0000)
 - Now fixed to ensure substitution value isn't of unicode type on Python 2.6-7.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188384 91177308-0d34-0410-b5e6-96231b3b80d8

test/lit.cfg

index c198dfe56874b8af6a3a7f5760d28fde3223fb55..d23a40c79b7044c0b3285f886fc48daaa0674952 100644 (file)
@@ -200,7 +200,8 @@ def getClangBuiltinIncludeDir(clang):
     if sys.platform in ['win32'] and execute_external:
         # Don't pass dosish path separator to msys bash.exe.
         dir = dir.replace('\\', '/')
-    return dir
+    # Ensure the result is an ascii string, across Python2.5+ - Python3.
+    return str(dir.decode('ascii'))
 
 config.substitutions.append( ('%clang_cc1', '%s -cc1 -internal-isystem %s'
                               % (config.clang,