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

ruby-changes:35130

From: nobu <ko1@a...>
Date: Mon, 18 Aug 2014 09:04:38 +0900 (JST)
Subject: [ruby-changes:35130] nobu:r47212 (trunk): test_time_tz.rb: has_lisbon_tz

nobu	2014-08-18 09:04:32 +0900 (Mon, 18 Aug 2014)

  New Revision: 47212

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

  Log:
    test_time_tz.rb: has_lisbon_tz
    
    * test/ruby/test_time_tz.rb (has_lisbon_tz): separate from
      has_right_tz.

  Modified files:
    trunk/test/ruby/test_time_tz.rb
Index: test/ruby/test_time_tz.rb
===================================================================
--- test/ruby/test_time_tz.rb	(revision 47211)
+++ test/ruby/test_time_tz.rb	(revision 47212)
@@ -2,12 +2,15 @@ require 'test/unit' https://github.com/ruby/ruby/blob/trunk/test/ruby/test_time_tz.rb#L2
 
 class TestTimeTZ < Test::Unit::TestCase
   has_right_tz = true
+  has_lisbon_tz = true
   force_tz_test = ENV["RUBY_FORCE_TIME_TZ_TEST"] == "yes"
   case RUBY_PLATFORM
   when /linux/
+    # has_right_tz = false
     force_tz_test = true
   when /darwin|freebsd/
     has_right_tz = false
+    has_lisbon_tz = false
     force_tz_test = true
   end
 
@@ -147,7 +150,7 @@ class TestTimeTZ < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_time_tz.rb#L150
     with_tz("Europe/Lisbon") {
       assert_equal("LMT", Time.new(-0x1_0000_0000_0000_0000).zone)
     }
-  end if has_right_tz
+  end if has_lisbon_tz
 
   def test_europe_moscow
     with_tz(tz="Europe/Moscow") {
@@ -342,6 +345,8 @@ right/America/Los_Angeles  Wed Dec 31 23 https://github.com/ruby/ruby/blob/trunk/test/ruby/test_time_tz.rb#L345
 #right/Asia/Tokyo  Sat Dec 31 23:59:60 2005 UTC = Sun Jan  1 08:59:60 2006 JST isdst=0 gmtoff=32400
 right/Europe/Paris  Fri Jun 30 23:59:60 1972 UTC = Sat Jul  1 00:59:60 1972 CET isdst=0 gmtoff=3600
 right/Europe/Paris  Wed Dec 31 23:59:60 2008 UTC = Thu Jan  1 00:59:60 2009 CET isdst=0 gmtoff=3600
+End
+  gen_zdump_test <<'End' if has_lisbon_tz
 Europe/Lisbon  Mon Jan  1 00:36:31 1912 UTC = Sun Dec 31 23:59:59 1911 LMT isdst=0 gmtoff=-2192
 End
 end

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

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