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

ruby-changes:14455

From: akr <ko1@a...>
Date: Tue, 12 Jan 2010 03:16:53 +0900 (JST)
Subject: [ruby-changes:14455] Ruby:r26287 (trunk): add a test.

akr	2010-01-12 03:15:25 +0900 (Tue, 12 Jan 2010)

  New Revision: 26287

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

  Log:
    add a test.

  Modified files:
    trunk/test/ruby/test_process.rb

Index: test/ruby/test_process.rb
===================================================================
--- test/ruby/test_process.rb	(revision 26286)
+++ test/ruby/test_process.rb	(revision 26287)
@@ -1148,4 +1148,20 @@
     rescue ArgumentError
     end
   end
+
+  def test_no_curdir
+    if /mswin|bccwin|mingw/ =~ RUBY_PLATFORM
+      skip "removing current directory is not supported"
+    end
+    with_tmpchdir {|d|
+      Dir.mkdir("vd")
+      status = nil
+      Dir.chdir("vd") {
+        Dir.rmdir("#{d}/vd")
+        system(RUBY, "-e", "exit true")
+        status = $?
+      }
+      assert(status.success?)
+    }
+  end
 end

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

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