From b4ab9c0e3214c619f2025fb19ff8e010d99112eb Mon Sep 17 00:00:00 2001 From: ko1 Date: Fri, 18 Jan 2019 02:04:41 +0000 Subject: [PATCH] support older BASERUBY for btest. * bootstraptest/test_insns.rb: check RbConfig::LIMITS to support older BASERUBY. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_insns.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bootstraptest/test_insns.rb b/bootstraptest/test_insns.rb index 88f36bd0c2..a093d60779 100644 --- a/bootstraptest/test_insns.rb +++ b/bootstraptest/test_insns.rb @@ -10,8 +10,10 @@ begin rescue LoadError # OK, just skip else - $FIXNUM_MAX = RbConfig::LIMITS["FIXNUM_MAX"] - $FIXNUM_MIN = RbConfig::LIMITS["FIXNUM_MIN"] + if defined? RbConfig::LIMITS + $FIXNUM_MAX = RbConfig::LIMITS["FIXNUM_MAX"] + $FIXNUM_MIN = RbConfig::LIMITS["FIXNUM_MIN"] + end end fsl = { frozen_string_literal: true } # used later