OSDN Git Service

[LIT] Handle xml characters in test names
authorChris Matthews <cmatthews5@apple.com>
Wed, 9 May 2018 23:48:32 +0000 (23:48 +0000)
committerChris Matthews <cmatthews5@apple.com>
Wed, 9 May 2018 23:48:32 +0000 (23:48 +0000)
commit2a434d1ea3e25b923c8f8f02f16aef43fd2306cb
treef1139548e4ca62e9859bcdd7832450050eb3b07d
parent2f825676aaf33d4fb39e696b15cfc7d007edb6ae
[LIT] Handle xml characters in test names

Lit creates malformed xml when the test case has an & in the name.

Escape those correctly.

This also adds a test case which I will add other nasty encoding issues to in some followup commits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@331942 91177308-0d34-0410-b5e6-96231b3b80d8
utils/lit/lit/Test.py
utils/lit/tests/test-output.py
utils/lit/tests/xunit-output.py