summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit/tests
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2013-08-14 18:22:41 +0000
committerDaniel Dunbar <daniel@zuster.org>2013-08-14 18:22:41 +0000
commite469b981f30bbd5c2eb911c5ab6f5b548c6a65ef (patch)
treeab2f11d393d330faaf154d55694702f3297983b2 /llvm/utils/lit/tests
parentbe85cb90984d4d68550687c96defb0dd150eaa4d (diff)
downloadbcm5719-llvm-e469b981f30bbd5c2eb911c5ab6f5b548c6a65ef.tar.gz
bcm5719-llvm-e469b981f30bbd5c2eb911c5ab6f5b548c6a65ef.zip
[lit] Support parsing scripts with inconsistent or invalid encodings.
- For whatever reason, we have a lot of test files with bogus unicode characters. This patch allows those scripts to still be parsed on Python3 by changing the parsing logic to work on binary files, and only require the actual script commands to be convertible to ascii. - This patch has been tweaked to now ensure that the command strings are not of unicode type on Python 2.6-7. llvm-svn: 188398
Diffstat (limited to 'llvm/utils/lit/tests')
-rw-r--r--llvm/utils/lit/tests/shtest-encoding.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/utils/lit/tests/shtest-encoding.py b/llvm/utils/lit/tests/shtest-encoding.py
new file mode 100644
index 00000000000..dfc987f6df7
--- /dev/null
+++ b/llvm/utils/lit/tests/shtest-encoding.py
@@ -0,0 +1,3 @@
+# RUN: true
+
+# Here is a string that cannot be decoded in line mode: Â.
OpenPOWER on IntegriCloud