1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/irb
Jeremy Evans 14e1739ff3 [ruby/irb] Make save-history extension safe for concurrent use
This makes the save-history extension check for modifications to
the history file before saving it.  If the history file was modified
after the history was loaded and before it was saved, append only
the new history lines to the history file.

This can result in more lines in the history file than SAVE_HISTORY
allows.  However, that will be fixed the next time irb is run and
the history is saved.

Fixes [Bug #13654]

https://github.com/ruby/irb/commit/041ef53845
2021-03-06 00:18:32 +09:00
..
test_cmd.rb [ruby/irb] The command "irb_info" should show RUBY_PLATFORM 2021-02-11 20:36:43 +09:00
test_color.rb [ruby/irb] Remove pp-specific stub from TestColor 2021-01-20 18:10:20 +09:00
test_color_printer.rb [ruby/irb] Undefine unused constants 2021-01-20 18:07:40 +09:00
test_completion.rb should use assert_include here. 2021-01-08 14:44:26 +09:00
test_context.rb [ruby/irb] follow up the actual line number 2021-02-03 00:09:32 +09:00
test_history.rb [ruby/irb] Make save-history extension safe for concurrent use 2021-03-06 00:18:32 +09:00
test_init.rb Fix the failing test with XDG_CONFIG_HOME 2021-01-12 20:15:18 +09:00
test_option.rb
test_raise_no_backtrace_exception.rb [ruby/irb] Use Exception#full_message to show backtrace in the correct order 2021-01-08 13:25:18 +09:00
test_ruby_lex.rb [ruby/irb] Add a test for not continuing when endless range at eol 2021-03-05 22:03:11 +09:00
test_workspace.rb [ruby/irb] Suppress colorize on Windows tests 2021-02-11 20:31:29 +09:00