diff options
author | aycabta <aycabta@gmail.com> | 2019-12-13 00:04:01 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-12-13 00:04:44 +0900 |
commit | 69b6f8fd047c5c9e0fa6f65656fda762f8ecfc5e (patch) | |
tree | 5d67cdb65bbf616200080039f6d3157f08b02f3d /test/readline | |
parent | 93b27c69cc65b5019df061bb8fefaa097bf8a33d (diff) |
Check wether TestReadline is defined
Diffstat (limited to 'test/readline')
-rw-r--r-- | test/readline/test_readline.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/readline/test_readline.rb b/test/readline/test_readline.rb index 876d61ea0e..e3c6727641 100644 --- a/test/readline/test_readline.rb +++ b/test/readline/test_readline.rb @@ -434,7 +434,7 @@ module BasetestReadline def test_input_metachar skip "Skip Editline" if /EditLine/n.match(Readline::VERSION) skip("Won't pass on mingw w/readline 7.0.005 [ruby-core:45682]") if mingw? - skip 'Needs GNU Readline 6 or later' if windows? and kind_of?(TestReadline) and Readline::VERSION < '6.0' + skip 'Needs GNU Readline 6 or later' if windows? and defined?(TestReadline) and kind_of?(TestReadline) and Readline::VERSION < '6.0' bug6601 = '[ruby-core:45682]' Readline::HISTORY << "hello" wo = nil @@ -683,7 +683,7 @@ module BasetestReadline # http://rubyci.s3.amazonaws.com/solaris11s-sunc/ruby-trunk/log/20181228T102505Z.fail.html.gz skip 'This test does not succeed on Oracle Developer Studio for now' end - skip 'Needs GNU Readline 6 or later' if windows? and kind_of?(TestReadline) and Readline::VERSION < '6.0' + skip 'Needs GNU Readline 6 or later' if windows? and defined?(TestReadline) and kind_of?(TestReadline) and Readline::VERSION < '6.0' Readline.completion_proc = -> (_) { [] } Readline.completer_quote_characters = "'\"" |