summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--test/ruby/test_time.rb9
2 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index e76f56f550..4841d08e4f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu Aug 28 23:55:22 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_time.rb: suppress warning during test.
+
Thu Aug 28 23:50:47 2008 Yusuke Endoh <mame@tsg.ne.jp>
* test/ruby/test_time.rb (test_strftime): make test for %a independent
diff --git a/test/ruby/test_time.rb b/test/ruby/test_time.rb
index b36813bb9c..4378e6ff14 100644
--- a/test/ruby/test_time.rb
+++ b/test/ruby/test_time.rb
@@ -3,6 +3,15 @@ require 'rational'
require 'timeout'
class TestTime < Test::Unit::TestCase
+ def setup
+ @verbose = $VERBOSE
+ $VERBOSE = nil
+ end
+
+ def teardown
+ $VERBOSE = @verbose
+ end
+
def test_time_add()
assert_equal(Time.utc(2000, 3, 21, 3, 30) + 3 * 3600,
Time.utc(2000, 3, 21, 6, 30))