diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2022-02-01 16:32:38 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2022-02-22 11:55:40 +0900 |
commit | f207f7a193dc4e55820e77388edefb5d8fde18d7 (patch) | |
tree | 733841bdb334ec44deb69e8068b554fedf5ccbd7 /test/ruby | |
parent | 36e31b09cddbadd6acc4becb83a8c4bddfb2af1f (diff) | |
download | ruby-f207f7a193dc4e55820e77388edefb5d8fde18d7.tar.gz |
Do not escape error message
[Feature #18367]
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_exception.rb | 11 | ||||
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 4 |
2 files changed, 8 insertions, 7 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index 306ef200c5..0a0af390ca 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -991,11 +991,12 @@ $stderr = $stdout; raise "\x82\xa0"') do |outs, errs, status| end assert_not_nil(e) assert_include(e.message, "\0") - assert_in_out_err([], src, [], [], *args, **opts) do |_, err,| - err.each do |e| - assert_not_include(e, "\0") - end - end + # Disabled by [Feature #18367] + #assert_in_out_err([], src, [], [], *args, **opts) do |_, err,| + # err.each do |e| + # assert_not_include(e, "\0") + # end + #end e end diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 8839efd04a..4adb03edef 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -357,9 +357,9 @@ class TestRubyOptions < Test::Unit::TestCase assert_in_out_err(%W(-\r -e) + [""], "", [], []) - assert_in_out_err(%W(-\rx), "", [], /invalid option -\\r \(-h will show valid options\) \(RuntimeError\)/) + assert_in_out_err(%W(-\rx), "", [], /invalid option -\r \(-h will show valid options\) \(RuntimeError\)/) - assert_in_out_err(%W(-\x01), "", [], /invalid option -\\x01 \(-h will show valid options\) \(RuntimeError\)/) + assert_in_out_err(%W(-\x01), "", [], /invalid option -\x01 \(-h will show valid options\) \(RuntimeError\)/) assert_in_out_err(%w(-Z), "", [], /invalid option -Z \(-h will show valid options\) \(RuntimeError\)/) end |