summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-29 12:36:28 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-29 12:36:28 +0000
commit8da30b8928d70e7bf11291ca5fe256189b68a355 (patch)
tree50bbe01410e0b95b767b2ffcb1533f19eef3cba8
parent7e5be7e1314cde91c2c05702eff3da8083925172 (diff)
* test/etc/test_etc.rb (test_passwd): age field may be string under
some environments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--test/etc/test_etc.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a9b42f985c..5e9ac7fe55 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Jul 29 21:35:59 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/etc/test_etc.rb (test_passwd): age field may be string under
+ some environments.
+
Tue Jul 29 17:54:35 2008 NARUSE, Yui <naruse@ruby-lang.org>
* dir.c (char_casecmp): fix: return 0 if either of characters is NUL.
diff --git a/test/etc/test_etc.rb b/test/etc/test_etc.rb
index 29e5f0bed2..6fc7c6092b 100644
--- a/test/etc/test_etc.rb
+++ b/test/etc/test_etc.rb
@@ -18,7 +18,7 @@ class TestEtc < Test::Unit::TestCase
assert_instance_of(String, s.shell)
assert_kind_of(Integer, s.change) if s.respond_to?(:change)
assert_kind_of(Integer, s.quota) if s.respond_to?(:quota)
- assert_kind_of(Integer, s.age) if s.respond_to?(:age)
+ assert(s.age.is_a?(Integer) || s.age.is_a?(String)) if s.respond_to?(:age)
assert_instance_of(String, s.uclass) if s.respond_to?(:uclass)
assert_instance_of(String, s.comment) if s.respond_to?(:comment)
assert_kind_of(Integer, s.expire) if s.respond_to?(:expire)