diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-04-08 15:42:22 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-04-08 15:51:18 +0900 |
commit | 3e8e4c05059b9e74dbad1f6ee129ba168be716fb (patch) | |
tree | 448bc38dcdf3f4f3c0b6da075587ec41b24a8f8d /test/net/ftp | |
parent | 0c131fb7ff0b927d8d7bf5824dcb19ed2efc926d (diff) | |
download | ruby-3e8e4c05059b9e74dbad1f6ee129ba168be716fb.tar.gz |
[ruby/net-ftp] Added guard condition for the old ruby versions
https://github.com/ruby/net-ftp/commit/a56ba121ee
Diffstat (limited to 'test/net/ftp')
-rw-r--r-- | test/net/ftp/test_ftp.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/net/ftp/test_ftp.rb b/test/net/ftp/test_ftp.rb index affe3009c8..0bc45f2996 100644 --- a/test/net/ftp/test_ftp.rb +++ b/test/net/ftp/test_ftp.rb @@ -736,7 +736,7 @@ class FTPTest < Test::Unit::TestCase def test_getbinaryfile # http://ci.rvm.jp/logfiles/brlog.trunk-mjit-wait.20200326-025942 - skip 'This has been too unstable with --jit-wait' if RubyVM::MJIT.enabled? + skip 'This has been too unstable with --jit-wait' if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? commands = [] binary_data = (0..0xff).map {|i| i.chr}.join * 4 * 3 server = create_ftp_server { |sock| @@ -2186,7 +2186,7 @@ EOF def test_abort_tls return unless defined?(OpenSSL) # http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/2789353 - skip 'This is unstable with --jit-wait. TODO: debug it' if RubyVM::MJIT.enabled? + skip 'This is unstable with --jit-wait. TODO: debug it' if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? commands = [] server = create_ftp_server { |sock| |