Skip to content

Commit

Permalink
Move embedded lines outside the here document
Browse files Browse the repository at this point in the history
So that the actually run test code corresponds to the source file
line-by-line.
  • Loading branch information
nobu committed Oct 9, 2021
1 parent e4eccc7 commit 1d19f70
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions test/readline/test_readline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -485,18 +485,17 @@ def test_interrupt_in_other_thread
omit "Skip Readline 7.0" if Readline::VERSION == "7.0"
omit unless respond_to?(:assert_ruby_status)
omit if /mswin|mingw/ =~ 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
Expand Down

0 comments on commit 1d19f70

Please sign in to comment.