ruby-changes:17269
From: shyouhei <ko1@a...>
Date: Thu, 16 Sep 2010 15:03:19 +0900 (JST)
Subject: [ruby-changes:17269] Ruby:r29270 (trunk): * test/ruby/test_file_exhaustive.rb (TestFileExhaustive::test_expand_path):
shyouhei 2010-09-16 15:03:13 +0900 (Thu, 16 Sep 2010) New Revision: 29270 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29270 Log: * test/ruby/test_file_exhaustive.rb (TestFileExhaustive::test_expand_path): ENV["HOME"] might not be set. On those cases without it an exception raises here, which effectively disables later tests on this method. Modified files: trunk/ChangeLog trunk/test/ruby/test_file_exhaustive.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 29269) +++ ChangeLog (revision 29270) @@ -1,3 +1,10 @@ +Thu Sep 16 14:50:42 2010 URABE Shyouhei <shyouhei@r...> + + * test/ruby/test_file_exhaustive.rb (TestFileExhaustive::test_expand_path): + ENV["HOME"] might not be set. On those cases without it an + exception raises here, which effectively disables later + tests on this method. + Thu Sep 16 08:30:28 2010 Nobuyoshi Nakada <nobu@r...> * sprintf.c (rb_f_sprintf): fix rdoc. pointed out by Tomoyuki Index: test/ruby/test_file_exhaustive.rb =================================================================== --- test/ruby/test_file_exhaustive.rb (revision 29269) +++ test/ruby/test_file_exhaustive.rb (revision 29270) @@ -398,7 +398,7 @@ assert_equal(@file, File.expand_path(@file + "::$DATA")) assert_match(/\Ac:\//i, File.expand_path('c:'), '[ruby-core:31591]') end - assert_kind_of(String, File.expand_path("~")) + assert_kind_of(String, File.expand_path("~")) if ENV["HOME"] assert_raise(ArgumentError) { File.expand_path("~foo_bar_baz_unknown_user_wahaha") } assert_raise(ArgumentError) { File.expand_path("~foo_bar_baz_unknown_user_wahaha", "/") } begin -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/