ruby-changes:67118
From: aycabta <ko1@a...>
Date: Wed, 11 Aug 2021 14:11:48 +0900 (JST)
Subject: [ruby-changes:67118] 7d84251500 (master): Write log to stdout immediately
https://git.ruby-lang.org/ruby.git/commit/?id=7d84251500 From 7d842515004e2a714f60a064fab90ac326418d1b Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Wed, 11 Aug 2021 14:02:28 +0900 Subject: Write log to stdout immediately --- test/readline/test_readline.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/readline/test_readline.rb b/test/readline/test_readline.rb index c0f1b30..73e3df1 100644 --- a/test/readline/test_readline.rb +++ b/test/readline/test_readline.rb @@ -484,6 +484,7 @@ module BasetestReadline https://github.com/ruby/ruby/blob/trunk/test/readline/test_readline.rb#L484 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 @@ module BasetestReadline https://github.com/ruby/ruby/blob/trunk/test/readline/test_readline.rb#L500 Thread.new{ trap(:INT) { puts 'TRAP' - $stdout.flush } Readline.readline('input> ') exit!(0) # Cause the process to exit immediately. -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/