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

ruby-changes:43916

From: nagachika <ko1@a...>
Date: Tue, 23 Aug 2016 03:25:23 +0900 (JST)
Subject: [ruby-changes:43916] nagachika:r55989 (ruby_2_3): merge revision(s) 55554: [Backport #12537]

nagachika	2016-08-23 03:25:19 +0900 (Tue, 23 Aug 2016)

  New Revision: 55989

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

  Log:
    merge revision(s) 55554: [Backport #12537]
    
    * test/fiddle/test_pointer.rb (test_to_str, test_to_s, test_aref_aset):
      Attempt to use independent strings for destructive tests that
      directly modify values on memory by using Fiddle::Pointer.
      [Bug #12537] [ruby-dev:49700]

  Modified directories:
    branches/ruby_2_3/
  Modified files:
    branches/ruby_2_3/ChangeLog
    branches/ruby_2_3/test/fiddle/test_pointer.rb
    branches/ruby_2_3/version.h
Index: ruby_2_3/ChangeLog
===================================================================
--- ruby_2_3/ChangeLog	(revision 55988)
+++ ruby_2_3/ChangeLog	(revision 55989)
@@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/ChangeLog#L1
+Tue Aug 23 03:22:34 2016  Naohisa Goto  <ngotogenome@g...>
+
+	* test/fiddle/test_pointer.rb (test_to_str, test_to_s, test_aref_aset):
+	  Attempt to use independent strings for destructive tests that
+	  directly modify values on memory by using Fiddle::Pointer.
+	  [Bug #12537] [ruby-dev:49700]
+
 Tue Aug 23 03:14:22 2016  Naohisa Goto  <ngotogenome@g...>
 
 	* string.c (str_buf_cat): Fix capa size for embed string.
Index: ruby_2_3/test/fiddle/test_pointer.rb
===================================================================
--- ruby_2_3/test/fiddle/test_pointer.rb	(revision 55988)
+++ ruby_2_3/test/fiddle/test_pointer.rb	(revision 55989)
@@ -35,7 +35,7 @@ module Fiddle https://github.com/ruby/ruby/blob/trunk/ruby_2_3/test/fiddle/test_pointer.rb#L35
     end
 
     def test_to_str
-      str = "hello world"
+      str = Marshal.load(Marshal.dump("hello world"))
       ptr = Pointer[str]
 
       assert_equal 3, ptr.to_str(3).length
@@ -46,7 +46,7 @@ module Fiddle https://github.com/ruby/ruby/blob/trunk/ruby_2_3/test/fiddle/test_pointer.rb#L46
     end
 
     def test_to_s
-      str = "hello world"
+      str = Marshal.load(Marshal.dump("hello world"))
       ptr = Pointer[str]
 
       assert_equal 3, ptr.to_s(3).length
@@ -202,7 +202,7 @@ module Fiddle https://github.com/ruby/ruby/blob/trunk/ruby_2_3/test/fiddle/test_pointer.rb#L202
         assert_equal(str[0].ord, ptr[0])
         assert_equal(str[1].ord, ptr[1])
       }
-      str = 'abc'
+      str = Marshal.load(Marshal.dump('abc'))
       ptr = Pointer[str]
       check.call(str, ptr)
 
Index: ruby_2_3/version.h
===================================================================
--- ruby_2_3/version.h	(revision 55988)
+++ ruby_2_3/version.h	(revision 55989)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/version.h#L1
 #define RUBY_VERSION "2.3.2"
 #define RUBY_RELEASE_DATE "2016-08-23"
-#define RUBY_PATCHLEVEL 175
+#define RUBY_PATCHLEVEL 176
 
 #define RUBY_RELEASE_YEAR 2016
 #define RUBY_RELEASE_MONTH 8

Property changes on: ruby_2_3
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r55554


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

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