diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-10-09 23:11:38 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-12-24 17:33:45 +0900 |
commit | 517964d57b9340fc1e0525da56dcd567050e8537 (patch) | |
tree | d54adf7696e2064911ad731a9964a71f6316ce2e /test | |
parent | d81046b2d607d7a87ce3f05ce9239c0ca1104448 (diff) |
Move embedded lines outside the here document
So that the actually run test code corresponds to the source file
line-by-line.
Diffstat (limited to 'test')
-rw-r--r-- | test/readline/test_readline.rb | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/test/readline/test_readline.rb b/test/readline/test_readline.rb index 15423fd672..2947dd7229 100644 --- a/test/readline/test_readline.rb +++ b/test/readline/test_readline.rb @@ -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 |