summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-18 15:34:46 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-18 15:34:46 +0000
commit33e5cfee7b90ec800e4546c6a0c0a73c2a66d73c (patch)
treede911d8c8c3553ec6661dc627cfebefd843de9d1
parent87d053f0002ebf9a3927412a85ea0a09bd06f705 (diff)
* test/etc/test_etc.rb: avoid infinite loop. [ruby-dev:35158]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--test/etc/test_etc.rb8
-rw-r--r--version.h6
3 files changed, 14 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 327e460..eeeb3bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu Jun 19 00:33:40 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/etc/test_etc.rb: avoid infinite loop. [ruby-dev:35158]
+
Wed Jun 18 23:07:19 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
* gc.c (rb_newobj): prohibit call of rb_newobj() during gc.
@@ -99,7 +103,7 @@ Tue Jun 17 23:02:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
Tue Jun 17 22:04:47 2008 Yusuke Endoh <mame@tsg.ne.jp>
* enc/euc_jp.c (property_name_to_ctype): core dumped when sizeof(int)
- differs from sizeof(long).
+ differs from sizeof(long). [ruby-dev:35131]
* enc/shift_jis.c (property_name_to_ctype): ditto.
diff --git a/test/etc/test_etc.rb b/test/etc/test_etc.rb
index 5725569..48a17ff 100644
--- a/test/etc/test_etc.rb
+++ b/test/etc/test_etc.rb
@@ -28,14 +28,18 @@ class TestEtc < Test::Unit::TestCase
end
def test_getpwuid
- Etc.passwd do |s|
+ passwd = []
+ Etc.passwd {|s| passwd << s }
+ passwd.each do |s|
assert_equal(s, Etc.getpwuid(s.uid))
assert_equal(s, Etc.getpwuid) if Etc.getlogin == s.name
end
end
def test_getpwnam
- Etc.passwd do |s|
+ passwd = []
+ Etc.passwd {|s| passwd << s }
+ passwd.each do |s|
assert_equal(s, Etc.getpwnam(s.name))
end
end
diff --git a/version.h b/version.h
index dc19ee6..3ceb512 100644
--- a/version.h
+++ b/version.h
@@ -1,7 +1,7 @@
#define RUBY_VERSION "1.9.0"
-#define RUBY_RELEASE_DATE "2008-06-18"
+#define RUBY_RELEASE_DATE "2008-06-19"
#define RUBY_VERSION_CODE 190
-#define RUBY_RELEASE_CODE 20080618
+#define RUBY_RELEASE_CODE 20080619
#define RUBY_PATCHLEVEL 0
#define RUBY_VERSION_MAJOR 1
@@ -9,7 +9,7 @@
#define RUBY_VERSION_TEENY 0
#define RUBY_RELEASE_YEAR 2008
#define RUBY_RELEASE_MONTH 6
-#define RUBY_RELEASE_DAY 18
+#define RUBY_RELEASE_DAY 19
#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];