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

ruby-changes:39364

From: nobu <ko1@a...>
Date: Thu, 30 Jul 2015 13:33:14 +0900 (JST)
Subject: [ruby-changes:39364] nobu:r51445 (trunk): envutil.rb: -w for assert_separately

nobu	2015-07-30 13:33:00 +0900 (Thu, 30 Jul 2015)

  New Revision: 51445

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51445

  Log:
    envutil.rb: -w for assert_separately
    
    * test/lib/envutil.rb (assert_separately): always add -w option
      for warnings.

  Modified files:
    trunk/test/lib/envutil.rb
    trunk/test/ruby/test_require.rb
Index: test/ruby/test_require.rb
===================================================================
--- test/ruby/test_require.rb	(revision 51444)
+++ test/ruby/test_require.rb	(revision 51445)
@@ -726,7 +726,7 @@ class TestRequire < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_require.rb#L726
 
         assert_throw(:blah) do
           x = Thread.current
-          y = Thread.start {
+          Thread.start {
             sleep 0.00001
             x.raise Error.new
           }
Index: test/lib/envutil.rb
===================================================================
--- test/lib/envutil.rb	(revision 51444)
+++ test/lib/envutil.rb	(revision 51445)
@@ -401,7 +401,7 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/envutil.rb#L401
   end
 eom
         args = args.dup
-        args.insert((Hash === args.first ? 1 : 0), "--disable=gems", *$:.map {|l| "-I#{l}"})
+        args.insert((Hash === args.first ? 1 : 0), "-w", "--disable=gems", *$:.map {|l| "-I#{l}"})
         stdout, stderr, status = EnvUtil.invoke_ruby(args, src, true, true, timeout_error: nil, **opt)
         abort = status.coredump? || (status.signaled? && ABORT_SIGNALS.include?(status.termsig))
         assert(!abort, FailDesc[status, nil, stderr])

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

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