summaryrefslogtreecommitdiff
path: root/test/test_tempfile.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-21 01:40:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-21 01:40:21 +0000
commita718be06fac884b62435a7fc9bb251131163c06e (patch)
tree82b09c64301c444dd3aaf639ed82047ab661840e /test/test_tempfile.rb
parent09e91be9abbaa7e363d15ba6654afc9e667af4aa (diff)
tempfile.rb: fix r47655
* lib/tempfile.rb (Tempfile#initialize, Tempfile.create): get rid of shadowing local variables. * lib/tmpdir.rb (Dir::Tmpname#make_tmpname): simlify argument splitting. * test/test_tempfile.rb: need thread library for ConditionVariable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/test_tempfile.rb')
-rw-r--r--test/test_tempfile.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_tempfile.rb b/test/test_tempfile.rb
index 61457e4138..eb61120b69 100644
--- a/test/test_tempfile.rb
+++ b/test/test_tempfile.rb
@@ -1,5 +1,6 @@
require 'test/unit'
require 'tempfile'
+require 'thread'
require_relative 'ruby/envutil'
class TestTempfile < Test::Unit::TestCase