diff --git a/ChangeLog b/ChangeLog index e77efc90bf..a2ed0724fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Dec 14 04:08:05 2012 NARUSE, Yui + + * test/ruby/envutil.rb (EnvUtil::Unit::Assertionsassert_separately): + added to execute given test source on separate process, + catch its resulted exception and raise it on main process. + Fri Dec 14 07:43:44 2012 Aaron Patterson * ext/psych/lib/psych/visitors/yaml_tree.rb: quote strings that begin diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb index 657e991e3f..edcda0ceba 100644 --- a/test/ruby/envutil.rb +++ b/test/ruby/envutil.rb @@ -193,6 +193,23 @@ module Test assert(status.success?, m) end + def assert_separately(args, file, line, src) + opt = {} + src = <