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:
parent
d81046b2d6
commit
517964d57b
1 changed files with 6 additions and 7 deletions
|
@ -494,18 +494,17 @@ module BasetestReadline
|
||||||
# Maybe the same issue: https://github.com/facebookresearch/nle/issues/120
|
# Maybe the same issue: https://github.com/facebookresearch/nle/issues/120
|
||||||
omit if /i[3-6]86-linux/ =~ RUBY_PLATFORM
|
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;"
|
code = <<-"end;"
|
||||||
$stdout.sync = true
|
$stdout.sync = true
|
||||||
require 'readline'
|
require 'readline'
|
||||||
require 'helper'
|
require 'helper'
|
||||||
puts "Readline::VERSION is \#{Readline::VERSION}."
|
puts "Readline::VERSION is \#{Readline::VERSION}."
|
||||||
#{
|
#{use}
|
||||||
if defined?(TestReadline) && self.class == TestReadline
|
|
||||||
"use_ext_readline"
|
|
||||||
elsif defined?(TestRelineAsReadline) && self.class == TestRelineAsReadline
|
|
||||||
"use_lib_reline"
|
|
||||||
end
|
|
||||||
}
|
|
||||||
Readline.input = STDIN
|
Readline.input = STDIN
|
||||||
# 0. Send SIGINT to this script.
|
# 0. Send SIGINT to this script.
|
||||||
begin
|
begin
|
||||||
|
|
Loading…
Reference in a new issue