[Bug #21018] Fix for s390x

This commit is contained in:
Nobuyoshi Nakada 2025-01-12 23:01:07 +09:00
parent 450d9dc8bf
commit d9e1a7cdf8
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -447,9 +447,9 @@ class TestRubyOptions < Test::Unit::TestCase
assert_in_out_err(%w(-Z), "", [], /invalid option -Z \(-h will show valid options\) \(RuntimeError\)/)
# On some platforms, langinfo returns ANSI_X3.4-1968 when LC_ALL=C and fall backs to UTF-8.
# Anyway only printable chars should be printed.
assert_in_out_err(%W(-\u{1f608}), "", [], /invalid option -(\\xf0|\u{1f608}) \(-h will show valid options\) \(RuntimeError\)/)
assert_in_out_err(%W(-\u{1f608}), "", [],
/invalid option -(\\xf0|\u{1f608}) \(-h will show valid options\) \(RuntimeError\)/,
encoding: Encoding::UTF_8)
end
def test_rubyopt