From: Chris Matthews Date: Fri, 11 May 2018 22:18:22 +0000 (+0000) Subject: Overhaul unicode handling in xunit output X-Git-Tag: llvmorg-7.0.0-rc1~6187 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b3db8519d80d6292f84f744ea7673187b4efda8;p=platform%2Fupstream%2Fllvm.git Overhaul unicode handling in xunit output I have seen a lot of errors where the xunit does not encode unicode test output correctly. Handle that explicitly now. llvm-svn: 332148 --- diff --git a/llvm/utils/lit/lit/Test.py b/llvm/utils/lit/lit/Test.py index c6ab505..6bebb73 100644 --- a/llvm/utils/lit/lit/Test.py +++ b/llvm/utils/lit/lit/Test.py @@ -371,15 +371,19 @@ class Test: class_name = safe_name + "." + "/".join(safe_test_path) else: class_name = safe_name + "." + safe_name - testcase_template = u"\n\t\n") + fil.write(">\n\t\n") elif self.result.code == UNSUPPORTED: - fil.write(u">\n\t\n\n") + fil.write(">\n\t\n\n") else: - fil.write(u"/>") + fil.write("/>")