1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
mame 2008-06-18 15:34:46 +00:00
parent 87d053f000
commit 33e5cfee7b
3 changed files with 14 additions and 6 deletions

View file

@ -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.

View file

@ -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

View file

@ -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[];