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

ruby-changes:8325

From: akr <ko1@a...>
Date: Mon, 20 Oct 2008 09:48:43 +0900 (JST)
Subject: [ruby-changes:8325] Ruby:r19853 (trunk): * test/runner.rb: search srcdir/test/arg at first to find test/ruby

akr	2008-10-20 09:48:24 +0900 (Mon, 20 Oct 2008)

  New Revision: 19853

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

  Log:
    * test/runner.rb: search srcdir/test/arg at first to find test/ruby
      directory when "ruby" is specified.

  Modified files:
    trunk/ChangeLog
    trunk/test/runner.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 19852)
+++ ChangeLog	(revision 19853)
@@ -1,3 +1,8 @@
+Mon Oct 20 09:47:13 2008  Tanaka Akira  <akr@f...>
+
+	* test/runner.rb: search srcdir/test/arg at first to find test/ruby
+	  directory when "ruby" is specified.
+
 Mon Oct 20 08:20:01 2008  Hidetoshi NAGAI  <nagai@a...>
 
 	* ext/tk/lib/tk.rb: support Encoding.default_internal.
Index: test/runner.rb
===================================================================
--- test/runner.rb	(revision 19852)
+++ test/runner.rb	(revision 19853)
@@ -11,12 +11,12 @@
     [src_testdir]
   else
     files.map {|f|
-      if File.exist? f
-        f
-      elsif File.exist? "#{src_testdir}/#{f}"
+      if File.exist? "#{src_testdir}/#{f}"
         "#{src_testdir}/#{f}"
       elsif File.exist? "#{srcdir}/#{f}"
         "#{srcdir}/#{f}"
+      elsif File.exist? f
+        f
       else
         raise ArgumentError, "not found: #{f}"
       end

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

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