From: Reid Kleckner Date: Wed, 3 Jul 2019 20:14:54 +0000 (+0000) Subject: Try to XFAIL mri-utf8.test on Mac X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f042a1d6e6ed3be866621d6f0b30e1450c0b290a;p=llvm Try to XFAIL mri-utf8.test on Mac git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365076 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/tools/llvm-ar/mri-utf8.test b/test/tools/llvm-ar/mri-utf8.test index 86c77fa9133..c6e17321cd0 100644 --- a/test/tools/llvm-ar/mri-utf8.test +++ b/test/tools/llvm-ar/mri-utf8.test @@ -1,18 +1,21 @@ -# Test non-ascii archive members - -RUN: rm -rf %t && mkdir -p %t/extracted - -RUN: echo "contents" > %t/£.txt - -RUN: echo "CREATE %t/mri.ar" > %t/script.mri -RUN: echo "ADDMOD %t/£.txt" >> %t/script.mri -RUN: echo "SAVE" >> %t/script.mri - -RUN: llvm-ar -M < %t/script.mri -RUN: cd %t/extracted && llvm-ar x %t/mri.ar - -# This works around problems launching processess that -# include arguments with non-ascii characters. -# Python on Linux defaults to ASCII encoding unless the -# environment specifies otherwise, so it is explicitly set. -RUN: env LANG=en_US.UTF-8 %python -c "assert open(u'\U000000A3.txt', 'rb').read() == b'contents\n'" +# Test non-ascii archive members + +# FIXME: The assertion fails for reasons unknown. +XFAIL: darwin + +RUN: rm -rf %t && mkdir -p %t/extracted + +RUN: echo "contents" > %t/£.txt + +RUN: echo "CREATE %t/mri.ar" > %t/script.mri +RUN: echo "ADDMOD %t/£.txt" >> %t/script.mri +RUN: echo "SAVE" >> %t/script.mri + +RUN: llvm-ar -M < %t/script.mri +RUN: cd %t/extracted && llvm-ar x %t/mri.ar + +# This works around problems launching processess that +# include arguments with non-ascii characters. +# Python on Linux defaults to ASCII encoding unless the +# environment specifies otherwise, so it is explicitly set. +RUN: env LANG=en_US.UTF-8 %python -c "assert open(u'\U000000A3.txt', 'rb').read() == b'contents\n'"