summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-ar
diff options
context:
space:
mode:
authorOwen Reynolds <gbreynoo@gmail.com>2019-10-04 12:26:25 +0000
committerOwen Reynolds <gbreynoo@gmail.com>2019-10-04 12:26:25 +0000
commite64369e76ea4f4f1bd33c6453f42b4b83bbb9fe3 (patch)
treeac80045b64ca498950c3287514b25fa605d4d8a2 /llvm/test/tools/llvm-ar
parent94d040706d4a7a892714b48b6e13741081961b58 (diff)
downloadbcm5719-llvm-e64369e76ea4f4f1bd33c6453f42b4b83bbb9fe3.tar.gz
bcm5719-llvm-e64369e76ea4f4f1bd33c6453f42b4b83bbb9fe3.zip
[llvm-ar][test] Clarified comment
The test is dependant on the installation of the en_US.UTF-8 locale. The reasoning for this is clarified in the amended comment. llvm-svn: 373737
Diffstat (limited to 'llvm/test/tools/llvm-ar')
-rw-r--r--llvm/test/tools/llvm-ar/mri-utf8.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-ar/mri-utf8.test b/llvm/test/tools/llvm-ar/mri-utf8.test
index 64999960074..e297dce8d8a 100644
--- a/llvm/test/tools/llvm-ar/mri-utf8.test
+++ b/llvm/test/tools/llvm-ar/mri-utf8.test
@@ -16,4 +16,8 @@ RUN: cd %t/extracted && llvm-ar x %t/mri.ar
# include arguments with non-ascii characters.
# Python on Linux defaults to ASCII encoding unless the
# environment specifies otherwise, so it is explicitly set.
+# The reliance the test has on this locale is not ideal,
+# however alternate solutions have been difficult due to
+# behaviour differences with python 2 vs python 3,
+# and linux vs windows.
RUN: env LANG=en_US.UTF-8 %python -c "assert open(u'\U000000A3.txt', 'rb').read() == b'contents\n'"
OpenPOWER on IntegriCloud