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

ruby-changes:10853

From: mame <ko1@a...>
Date: Thu, 19 Feb 2009 03:17:43 +0900 (JST)
Subject: [ruby-changes:10853] Ruby:r22423 (trunk): * test/ruby/test_file_exhaustive.rb: skip some tests if euid == 0.

mame	2009-02-19 03:17:26 +0900 (Thu, 19 Feb 2009)

  New Revision: 22423

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

  Log:
    * test/ruby/test_file_exhaustive.rb: skip some tests if euid == 0.
      a patch from Lucas Nussbaum in [ruby-core:22209].

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_file_exhaustive.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 22422)
+++ ChangeLog	(revision 22423)
@@ -1,3 +1,8 @@
+Thu Feb 19 03:12:51 2009  Yusuke Endoh  <mame@t...>
+
+	* test/ruby/test_file_exhaustive.rb: skip some tests if euid == 0. 
+	  a patch from Lucas Nussbaum in [ruby-core:22209].
+
 Thu Feb 19 03:00:49 2009  Akinori MUSHA  <knu@i...>
 
 	* README.EXT, README.EXT.ja: Improve the document about
@@ -16267,7 +16272,7 @@
 Tue Jun 24 00:21:53 2008  Yusuke Endoh  <mame@t...>
 
 	* compile.c (iseq_build_from_ary): initialize arg_opts, a patch from
-	  Adam Strzelecki <ono@j...> in [ruby-core:17220].
+	  Adam Strzelecki <ono at java.pl> in [ruby-core:17220].
 
 Tue Jun 24 00:10:53 2008  wanabe  <s.wanabe@g...>
 
Index: test/ruby/test_file_exhaustive.rb
===================================================================
--- test/ruby/test_file_exhaustive.rb	(revision 22422)
+++ test/ruby/test_file_exhaustive.rb	(revision 22423)
@@ -142,6 +142,7 @@
 
   def test_readable_p
     return if /cygwin|mswin|bccwin|mingw|emx/ =~ RUBY_PLATFORM
+    return if Process.euid == 0
     File.chmod(0200, @file)
     assert(!(File.readable?(@file)))
     File.chmod(0600, @file)
@@ -151,6 +152,7 @@
 
   def test_readable_real_p
     return if /cygwin|mswin|bccwin|mingw|emx/ =~ RUBY_PLATFORM
+    return if Process.euid == 0
     File.chmod(0200, @file)
     assert(!(File.readable_real?(@file)))
     File.chmod(0600, @file)
@@ -171,6 +173,7 @@
 
   def test_writable_p
     return if /cygwin|mswin|bccwin|mingw|emx/ =~ RUBY_PLATFORM
+    return if Process.euid == 0
     File.chmod(0400, @file)
     assert(!(File.writable?(@file)))
     File.chmod(0600, @file)
@@ -180,6 +183,7 @@
 
   def test_writable_real_p
     return if /cygwin|mswin|bccwin|mingw|emx/ =~ RUBY_PLATFORM
+    return if Process.euid == 0
     File.chmod(0400, @file)
     assert(!(File.writable_real?(@file)))
     File.chmod(0600, @file)
@@ -610,6 +614,7 @@
 
   def test_stat_readable_p
     return if /cygwin|mswin|bccwin|mingw|emx/ =~ RUBY_PLATFORM
+    return if Process.euid == 0
     File.chmod(0200, @file)
     assert(!(File::Stat.new(@file).readable?))
     File.chmod(0600, @file)
@@ -618,6 +623,7 @@
 
   def test_stat_readable_real_p
     return if /cygwin|mswin|bccwin|mingw|emx/ =~ RUBY_PLATFORM
+    return if Process.euid == 0
     File.chmod(0200, @file)
     assert(!(File::Stat.new(@file).readable_real?))
     File.chmod(0600, @file)
@@ -636,6 +642,7 @@
 
   def test_stat_writable_p
     return if /cygwin|mswin|bccwin|mingw|emx/ =~ RUBY_PLATFORM
+    return if Process.euid == 0
     File.chmod(0400, @file)
     assert(!(File::Stat.new(@file).writable?))
     File.chmod(0600, @file)
@@ -644,6 +651,7 @@
 
   def test_stat_writable_real_p
     return if /cygwin|mswin|bccwin|mingw|emx/ =~ RUBY_PLATFORM
+    return if Process.euid == 0
     File.chmod(0400, @file)
     assert(!(File::Stat.new(@file).writable_real?))
     File.chmod(0600, @file)

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

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