ruby/test/irb
Stan Lo 970e7cdec3 [ruby/irb] Make tests more compatible with TruffleRuby
(https://github.com/ruby/irb/pull/514)

* Improve encoding error test case

The test input IRB currently uses happen to hit a compatibility bug in
TruffleRuby, which has been documented in
https://github.com/oracle/truffleruby/issues/2848

Although it'll eventually be fixed, we can make the test case support TruffleRuby
now by tweaking it just a little bit.

Co-authored-by: Kevin Menard <kevin@nirvdrum.com>

* Remove redundant TruffleRuby omits/pends

Co-authored-by: Kevin Menard <kevin@nirvdrum.com>

* Use a different way to test warning emission

The test case was added in d08ef68d2d
to verify that IRB emits Ruby warning as expected.

But the subject it uses relies on CRuby's regexp engine, which isn't always
used in other language implementations, like TruffleRuby. That's why we
ended up skipping TruffleRuby in this test case.

Since the test isn't about regexp itself, we can change the testing subject
and just remove the special condition for TruffleRuby.

Co-authored-by: Kevin Menard <kevin@nirvdrum.com>

---------

6fdf4f3e97

Co-authored-by: Kevin Menard <kevin@nirvdrum.com>
2023-02-09 15:33:37 +00:00
..
yamatanooroti [ruby/irb] Test debug commands without yamatanooroti 2022-12-02 01:05:22 +00:00
helper.rb [ruby/irb] Require pathname in test helper 2022-12-02 22:00:42 +00:00
test_cmd.rb [ruby/irb] Add tests for workspaces commands 2023-02-04 22:31:17 +00:00
test_color.rb [ruby/irb] Test colors with enabling colors 2022-12-26 15:28:38 +00:00
test_color_printer.rb [ruby/irb] Test colors with enabling colors 2022-12-26 15:28:38 +00:00
test_completion.rb [ruby/irb] Provide a base test class and let tests restore encodings 2022-11-03 22:13:11 +00:00
test_context.rb [ruby/irb] Make tests more compatible with TruffleRuby 2023-02-09 15:33:37 +00:00
test_debug_cmd.rb [ruby/irb] PTY module is platform dependent 2022-12-19 17:49:59 +09:00
test_history.rb [ruby/irb] Prefer to use File.open instead of Kernel.open 2022-12-16 01:10:46 +00:00
test_init.rb [ruby/irb] Allow disabling autocompletion with 2022-12-06 00:53:32 +00:00
test_input_method.rb [ruby/irb] Provide a base test class and let tests restore encodings 2022-11-03 22:13:11 +00:00
test_option.rb [ruby/irb] Provide a base test class and let tests restore encodings 2022-11-03 22:13:11 +00:00
test_raise_no_backtrace_exception.rb [ruby/irb] Improve testing infra 2022-11-15 17:26:51 +00:00
test_ruby_lex.rb [ruby/irb] Store context in RubyLex 2023-01-14 09:19:09 +00:00
test_workspace.rb [ruby/irb] Provide a base test class and let tests restore encodings 2022-11-03 22:13:11 +00:00