Skip to content

Commit

Permalink
Write log to stdout immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Aug 11, 2021
1 parent 67e0610 commit 7d84251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/readline/test_readline.rb
Expand Up @@ -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}."
Expand All @@ -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.
Expand Down

0 comments on commit 7d84251

Please sign in to comment.