diff options
author | Joel E. Denny <jdenny-ornl@gmail.com> | 2019-10-18 12:53:45 -0400 |
---|---|---|
committer | Joel E. Denny <dennyje@ornl.gov> | 2019-10-25 18:13:13 -0400 |
commit | 27fdf8a29d1e0740c342d428fa48eda7b088ac8e (patch) | |
tree | c04816bd3493ae492c8a5b22ac03a77373c753b9 /llvm/utils/lit/tests/shtest-shell.py | |
parent | 73a7a55c0ec976fecadd7a872d24d850f8cd793a (diff) | |
download | llvm-27fdf8a29d1e0740c342d428fa48eda7b088ac8e.zip llvm-27fdf8a29d1e0740c342d428fa48eda7b088ac8e.tar.gz llvm-27fdf8a29d1e0740c342d428fa48eda7b088ac8e.tar.bz2 |
[lit] Don't fail when printing test output with special chars
This addresses a UnicodeEncodeError when using Python 3.6.5 in Windows
10.
Reviewed By: rnk
Differential Revision: https://reviews.llvm.org/D69207
Diffstat (limited to 'llvm/utils/lit/tests/shtest-shell.py')
-rw-r--r-- | llvm/utils/lit/tests/shtest-shell.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/llvm/utils/lit/tests/shtest-shell.py b/llvm/utils/lit/tests/shtest-shell.py index 1fc8b30..cef3728 100644 --- a/llvm/utils/lit/tests/shtest-shell.py +++ b/llvm/utils/lit/tests/shtest-shell.py @@ -413,5 +413,17 @@ # CHECK: PASS: shtest-shell :: rm-unicode-0.txt # CHECK: PASS: shtest-shell :: sequencing-0.txt # CHECK: XFAIL: shtest-shell :: sequencing-1.txt + +# CHECK: FAIL: shtest-shell :: stdout-encoding.txt +# CHECK: *** TEST 'shtest-shell :: stdout-encoding.txt' FAILED *** +# CHECK: $ "cat" "diff-in.bin" +# CHECK: # command output: +# CHECK-NEXT: {{^.f.o.o.$}} +# CHECK-NEXT: {{^.b.a.r..}} +# CHECK-NEXT: {{^.b.a.z.$}} +# CHECK-NOT: error +# CHECK: $ "false" +# CHECK: *** + # CHECK: PASS: shtest-shell :: valid-shell.txt -# CHECK: Failing Tests (32) +# CHECK: Failing Tests (33) |