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

ruby-changes:50651

From: usa <ko1@a...>
Date: Sun, 18 Mar 2018 23:34:22 +0900 (JST)
Subject: [ruby-changes:50651] usa:r62813 (ruby_2_3): merge revision(s) 58431, 58447: [Backport #13489]

usa	2018-03-18 23:34:17 +0900 (Sun, 18 Mar 2018)

  New Revision: 62813

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62813

  Log:
    merge revision(s) 58431,58447: [Backport #13489]
    
    test_framework.rb: for case-sensitive filesystem
    
    * test/mkmf/test_framework.rb (test_single_framework): fix header
      file name for case-sensitive filesystem.  it may not be same as
      the framework name, but should be the actual file name.
      [ruby-dev:50093] [Bug #13489]
    
    * test/mkmf/test_framework.rb (test_multi_frameworks): ditto.
    
    test_file_exhaustive.rb: check case-sensitive fs
    
    * test/ruby/test_file_exhaustive.rb (test_expand_path): dump
      expanded file name, not only appended char, for case-sensitive
      filesystem.  [ruby-dev:50093] [Bug #13489]

  Modified directories:
    branches/ruby_2_3/
  Modified files:
    branches/ruby_2_3/ChangeLog
    branches/ruby_2_3/test/mkmf/test_framework.rb
    branches/ruby_2_3/test/ruby/test_file_exhaustive.rb
    branches/ruby_2_3/version.h
Index: ruby_2_3/ChangeLog
===================================================================
--- ruby_2_3/ChangeLog	(revision 62812)
+++ ruby_2_3/ChangeLog	(revision 62813)
@@ -1,3 +1,20 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/ChangeLog#L1
+Sun Mar 18 23:31:44 2018  Nobuyoshi Nakada  <nobu@r...>
+
+	test_framework.rb: for case-sensitive filesystem
+
+	* test/mkmf/test_framework.rb (test_single_framework): fix header
+	  file name for case-sensitive filesystem. it may not be same as
+	  the framework name, but should be the actual file name.
+	  [Bug #13489]
+
+	* test/mkmf/test_framework.rb (test_multi_frameworks): ditto.
+
+	test_file_exhaustive.rb: check case-sensitive fs
+
+	* test/ruby/test_file_exhaustive.rb (test_expand_path): dump expanded
+	  file name, not only appended char, for case-sensitive filesystem.
+	  [Bug #13489]
+
 Sun Mar 18 23:29:14 2018  Masaki Suketa <masaki.suketa@n...>
 
 	* test/win32ole/test_word.rb: word quit without confirmation dialog to
Index: ruby_2_3/test/mkmf/test_framework.rb
===================================================================
--- ruby_2_3/test/mkmf/test_framework.rb	(revision 62812)
+++ ruby_2_3/test/mkmf/test_framework.rb	(revision 62813)
@@ -22,11 +22,11 @@ class TestMkmf https://github.com/ruby/ruby/blob/trunk/ruby_2_3/test/mkmf/test_framework.rb#L22
     end
 
     def test_single_framework
-      assert(have_framework("Ruby"), mkmflog("try as Objective-C"))
+      assert(have_framework(%w"Ruby ruby.h"), mkmflog("try as Objective-C"))
     end
 
     def test_multi_frameworks
-      assert(have_framework("Ruby"), mkmflog("try as Objective-C"))
+      assert(have_framework(%w"Ruby ruby.h"), mkmflog("try as Objective-C"))
       create_framework("MkmfTest") do |fw|
         assert(have_framework(fw), MKMFLOG)
       end
Index: ruby_2_3/test/ruby/test_file_exhaustive.rb
===================================================================
--- ruby_2_3/test/ruby/test_file_exhaustive.rb	(revision 62812)
+++ ruby_2_3/test/ruby/test_file_exhaustive.rb	(revision 62813)
@@ -725,12 +725,14 @@ class TestFileExhaustive < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/ruby_2_3/test/ruby/test_file_exhaustive.rb#L725
     when /darwin/
       ["\u{feff}", *"\u{2000}"..."\u{2100}"].each do |c|
         file = regular_file + c
+        full_path = File.expand_path(file)
+        mesg = proc {File.basename(full_path).dump}
         begin
           open(file) {}
         rescue
-          assert_equal(file, File.expand_path(file), c.dump)
+          assert_equal(file, full_path, mesg)
         else
-          assert_equal(regular_file, File.expand_path(file), c.dump)
+          assert_equal(regular_file, full_path, mesg)
         end
       end
     end
Index: ruby_2_3/version.h
===================================================================
--- ruby_2_3/version.h	(revision 62812)
+++ ruby_2_3/version.h	(revision 62813)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/version.h#L1
 #define RUBY_VERSION "2.3.7"
 #define RUBY_RELEASE_DATE "2018-03-18"
-#define RUBY_PATCHLEVEL 414
+#define RUBY_PATCHLEVEL 415
 
 #define RUBY_RELEASE_YEAR 2018
 #define RUBY_RELEASE_MONTH 3
Index: ruby_2_3
===================================================================
--- ruby_2_3	(revision 62812)
+++ ruby_2_3	(revision 62813)

Property changes on: ruby_2_3
___________________________________________________________________
Modified: svn:mergeinfo
## -0,0 +0,1 ##
   Merged /trunk:r58431,58447

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

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