[前][次][番号順一覧][スレッド一覧]

ruby-changes:60693

From: Hiroshi <ko1@a...>
Date: Wed, 8 Apr 2020 15:57:17 +0900 (JST)
Subject: [ruby-changes:60693] 3e8e4c0505 (master): [ruby/net-ftp] Added guard condition for the old ruby versions

https://git.ruby-lang.org/ruby.git/commit/?id=3e8e4c0505

From 3e8e4c05059b9e74dbad1f6ee129ba168be716fb Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Wed, 8 Apr 2020 15:42:22 +0900
Subject: [ruby/net-ftp] Added guard condition for the old ruby versions

https://github.com/ruby/net-ftp/commit/a56ba121ee

diff --git a/test/net/ftp/test_ftp.rb b/test/net/ftp/test_ftp.rb
index affe300..0bc45f2 100644
--- a/test/net/ftp/test_ftp.rb
+++ b/test/net/ftp/test_ftp.rb
@@ -736,7 +736,7 @@ class FTPTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/net/ftp/test_ftp.rb#L736
 
   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 https://github.com/ruby/ruby/blob/trunk/test/net/ftp/test_ftp.rb#L2186
   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|
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]