ruby-changes:41779
From: nobu <ko1@a...>
Date: Wed, 17 Feb 2016 17:29:33 +0900 (JST)
Subject: [ruby-changes:41779] nobu:r53853 (trunk): assertions.rb: fix assert_no_memory_leak
nobu 2016-02-17 17:29:58 +0900 (Wed, 17 Feb 2016) New Revision: 53853 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53853 Log: assertions.rb: fix assert_no_memory_leak * test/lib/test/unit/assertions.rb (assert_no_memory_leak): fix path of memory_status.rb, as this method has been moved. Modified files: trunk/test/lib/test/unit/assertions.rb Index: test/lib/test/unit/assertions.rb =================================================================== --- test/lib/test/unit/assertions.rb (revision 53852) +++ test/lib/test/unit/assertions.rb (revision 53853) @@ -637,14 +637,14 @@ eom https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit/assertions.rb#L637 end def assert_no_memory_leak(args, prepare, code, message=nil, limit: 2.0, rss: false, **opt) - require_relative 'memory_status' + require_relative '../../memory_status' token = "\e[7;1m#{$$.to_s}:#{Time.now.strftime('%s.%L')}:#{rand(0x10000).to_s(16)}:\e[m" token_dump = token.dump token_re = Regexp.quote(token) envs = args.shift if Array === args and Hash === args.first args = [ "--disable=gems", - "-r", File.expand_path("../memory_status", __FILE__), + "-r", File.expand_path("../../../memory_status", __FILE__), *args, "-v", "-", ] -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/