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

ruby-changes:31127

From: nobu <ko1@a...>
Date: Wed, 9 Oct 2013 12:11:55 +0900 (JST)
Subject: [ruby-changes:31127] nobu:r43206 (trunk): test_require.rb: need verbose

nobu	2013-10-09 12:11:49 +0900 (Wed, 09 Oct 2013)

  New Revision: 43206

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

  Log:
    test_require.rb: need verbose
    
    * test/ruby/test_require.rb (test_race_exception): need $VERBOSE
      setting, to emit warnings.

  Modified files:
    trunk/test/ruby/test_require.rb
Index: test/ruby/test_require.rb
===================================================================
--- test/ruby/test_require.rb	(revision 43205)
+++ test/ruby/test_require.rb	(revision 43206)
@@ -400,6 +400,7 @@ class TestRequire < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_require.rb#L400
     bug5754 = '[ruby-core:41618]'
     path = nil
     stderr = $stderr
+    verbose = $VERBOSE
     Tempfile.create(%w"bug5754 .rb") {|tmp|
       path = tmp.path
       tmp.print %{\
@@ -447,11 +448,14 @@ class TestRequire < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_require.rb#L448
       t1[:t] = t2
       t2[:t] = t1
 
+      $VERBOSE = true
       start = true
 
       assert_nothing_raised(ThreadError, bug5754) {t1.join}
       assert_nothing_raised(ThreadError, bug5754) {t2.join}
 
+      $VERBOSE = false
+
       assert_equal(true, (t1_res ^ t2_res), bug5754 + " t1:#{t1_res} t2:#{t2_res}")
       assert_equal([:pre, :post], scratch, bug5754)
 
@@ -459,6 +463,7 @@ class TestRequire < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_require.rb#L463
       assert_match(/in #{__method__}'$/o, output)
     }
   ensure
+    $VERBOSE = verbose
     $stderr = stderr
     $".delete(path)
   end

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

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