llvm.org GIT mirror llvm / 2990998
[LIT] replace output escapes wit a cdata block CDATA blocks don't need to have XML stuff escaped. Makes sense to wrap output in them instead of escaping. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332116 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Matthews 1 year, 5 months ago
2 changed file(s) with 4 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
375375 testcase_xml = testcase_template.format(class_name=class_name, test_name=test_name, time=elapsed_time)
376376 fil.write(testcase_xml)
377377 if self.result.code.isFailure:
378 fil.write(u">\n\t\n")
379 fil.write(escape(self.result.output))
380 fil.write(u"\n\t\n")
378 fil.write(u">\n\t")
379 fil.write(self.result.output)
380 fil.write(u"]]>\n")
381381 elif self.result.code == UNSUPPORTED:
382382 fil.write(u">\n\t\n\n")
383383 else:
55 # CHECK:
66 # CHECK:
77 # CHECK:
8 # CHECK-NEXT:
9 # CHECK-NEXT:& < > "
10 # CHECK-NEXT:
8 # CHECK-NEXT: "]]>
119 # CHECK:
1210 # CHECK: