1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Move embedded lines outside the here document

So that the actually run test code corresponds to the source file
line-by-line.
This commit is contained in:
Nobuyoshi Nakada 2021-10-09 23:11:38 +09:00 committed by Hiroshi SHIBATA
parent d81046b2d6
commit 517964d57b
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -494,18 +494,17 @@ module BasetestReadline
# Maybe the same issue: https://github.com/facebookresearch/nle/issues/120
omit if /i[3-6]86-linux/ =~ RUBY_PLATFORM
if defined?(TestReadline) && self.class == TestReadline
use = "use_ext_readline"
elsif defined?(TestRelineAsReadline) && self.class == TestRelineAsReadline
use = "use_lib_reline"
end
code = <<-"end;"
$stdout.sync = true
require 'readline'
require 'helper'
puts "Readline::VERSION is \#{Readline::VERSION}."
#{
if defined?(TestReadline) && self.class == TestReadline
"use_ext_readline"
elsif defined?(TestRelineAsReadline) && self.class == TestRelineAsReadline
"use_lib_reline"
end
}
#{use}
Readline.input = STDIN
# 0. Send SIGINT to this script.
begin