diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-09 03:11:49 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-09 03:11:49 +0000 |
commit | 37fb998384bff100352baf9e0f84f58ab77a7fb7 (patch) | |
tree | a707298815a55c57884e23a349d0ff58d9e28637 /test/ruby/test_require.rb | |
parent | b753b9606e6329c62d385512ea173171c7c07146 (diff) | |
download | ruby-37fb998384bff100352baf9e0f84f58ab77a7fb7.tar.gz |
test_require.rb: need verbose
* test/ruby/test_require.rb (test_race_exception): need $VERBOSE
setting, to emit warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_require.rb')
-rw-r--r-- | test/ruby/test_require.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb index ad08bf85de..228a45c4eb 100644 --- a/test/ruby/test_require.rb +++ b/test/ruby/test_require.rb @@ -400,6 +400,7 @@ class TestRequire < Test::Unit::TestCase 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 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 assert_match(/in #{__method__}'$/o, output) } ensure + $VERBOSE = verbose $stderr = stderr $".delete(path) end |