diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-20 18:08:55 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-20 18:08:55 +0000 |
commit | 80db7cc4fe74c20bcc1ea9e7fa7e01cc46ad3ec5 (patch) | |
tree | 99034e67e7c233ce61ee3fa2612da3730f5f2cd0 /test/ruby/envutil.rb | |
parent | cbab48f754661a68f95845ea5ef76ec447bc97e4 (diff) | |
download | ruby-80db7cc4fe74c20bcc1ea9e7fa7e01cc46ad3ec5.tar.gz |
envutil.rb: envutil in child
* test/ruby/envutil.rb (assert_separately): require envutil in the
child process too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/envutil.rb')
-rw-r--r-- | test/ruby/envutil.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb index c80a5f7da9..ce7226f86d 100644 --- a/test/ruby/envutil.rb +++ b/test/ruby/envutil.rb @@ -1,6 +1,7 @@ # -*- coding: us-ascii -*- require "open3" require "timeout" +require "test/unit" module EnvUtil def rubybin @@ -283,7 +284,7 @@ module Test line ||= loc.lineno end src = <<eom - require 'test/unit';include Test::Unit::Assertions;begin;#{src} + require #{__dir__.dump}'/envutil';include Test::Unit::Assertions;begin;#{src} ensure puts [Marshal.dump($!)].pack('m'), "assertions=\#{self._assertions}" end |