summaryrefslogtreecommitdiff
path: root/test/ruby/test_rubyoptions.rb
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-10-11 21:39:21 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-10-11 21:39:21 +0900
commit9e4a53fe13d8e3ad2e284dea8034bdd6a0561d97 (patch)
tree817df2f55166ec9f7dc32a31baf05a14d01e8fbd /test/ruby/test_rubyoptions.rb
parentf3c4e620ac612eab6370b1fb82feaa4e651542bb (diff)
test/ruby/test_rubyoptions.rb (test_encoding): skipped on Android
On Android, nl_langinfo() always returns UTF-8 even when LANG is C.
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r--test/ruby/test_rubyoptions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index c92d0e8212..22ea6b5293 100644
--- a/test/ruby/test_rubyoptions.rb
+++ b/test/ruby/test_rubyoptions.rb
@@ -287,7 +287,7 @@ class TestRubyOptions < Test::Unit::TestCase
assert_in_out_err(%w(--encoding test_ruby_test_rubyoptions_foobarbazqux), "", [],
/unknown encoding name - test_ruby_test_rubyoptions_foobarbazqux \(RuntimeError\)/)
- if /mswin|mingw|aix/ =~ RUBY_PLATFORM &&
+ if /mswin|mingw|aix|android/ =~ RUBY_PLATFORM &&
(str = "\u3042".force_encoding(Encoding.find("locale"))).valid_encoding?
# This result depends on locale because LANG=C doesn't affect locale
# on Windows.