diff --git a/test/readline/test_readline.rb b/test/readline/test_readline.rb index c0f1b30925c211..73e3df14e61401 100644 --- a/test/readline/test_readline.rb +++ b/test/readline/test_readline.rb @@ -484,6 +484,7 @@ def test_interrupt_in_other_thread omit unless respond_to?(:assert_ruby_status) omit if /mswin|mingw/ =~ RUBY_PLATFORM code = <<-"end;" + $stdout.sync = true require 'readline' require 'helper' puts "Readline::VERSION is \#{Readline::VERSION}." @@ -499,7 +500,6 @@ def test_interrupt_in_other_thread Thread.new{ trap(:INT) { puts 'TRAP' - $stdout.flush } Readline.readline('input> ') exit!(0) # Cause the process to exit immediately.