<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,8 @@
+Thu Sep 10 21:22:01 2009  Tanaka Akira  &lt;akr@fsij.org&gt;
+
+	* test/dl/test_cptr.rb (test_free=): test SEGV at first.
+	  [ruby-dev:39269]
+
 Tue Mar  3 15:05:19 2009  Nobuyoshi Nakada  &lt;nobu@ruby-lang.org&gt;
 
 	* ext/dl/lib/dl/value.rb (DL::ValueUtil#wrap_arg): NULL for nil.</diff>
      <filename>ChangeLog</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,5 @@
 require_relative 'test_base'
+require_relative '../ruby/envutil'
 
 module DL
   class TestCPtr &lt; TestBase
@@ -8,6 +9,20 @@ module DL
     end
 
     def test_free=
+      assert_normal_exit(&lt;&lt;-&quot;End&quot;, '[ruby-dev:39269]')
+        require 'dl
+        DL::LIBC_SO = #{LIBC_SO.dump}
+        DL::LIBM_SO = #{LIBM_SO.dump}
+        include DL
+        @libc = dlopen(LIBC_SO)
+        @libm = dlopen(LIBM_SO)
+        free = CFunc.new(@libc['free'], TYPE_VOID, 'free')
+        ptr = CPtr.malloc(4)
+        ptr.free = free
+        free.ptr
+        ptr.free.ptr
+      End
+
       free = CFunc.new(@libc['free'], TYPE_VOID, 'free')
       ptr = CPtr.malloc(4)
       ptr.free = free</diff>
      <filename>test/dl/test_cptr.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 #define RUBY_VERSION &quot;1.9.1&quot;
-#define RUBY_PATCHLEVEL 319
+#define RUBY_PATCHLEVEL 320
 #define RUBY_VERSION_MAJOR 1
 #define RUBY_VERSION_MINOR 9
 #define RUBY_VERSION_TEENY 1</diff>
      <filename>version.h</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d44cbebb464074f41d6bd7f46db320010aa3a4b1</id>
    </parent>
  </parents>
  <author>
    <name>Yuki Sonoda (Yugui)</name>
    <email>yugui@yugui.jp</email>
  </author>
  <url>http://github.com/yugui/ruby/commit/01d3f6966222d838684770c1cab35f6c16d76bd1</url>
  <id>01d3f6966222d838684770c1cab35f6c16d76bd1</id>
  <committed-date>2009-10-31T04:35:31-07:00</committed-date>
  <authored-date>2009-10-31T04:35:31-07:00</authored-date>
  <message>merges r24828 from trunk into ruby_1_9_1.
--
* test/dl/test_cptr.rb (test_free=): test SEGV at first.
  [ruby-dev:39269]</message>
  <tree>3c2ebc9ca8ece64acee481011c498def85b5fb01</tree>
  <committer>
    <name>Yuki Sonoda (Yugui)</name>
    <email>yugui@yugui.jp</email>
  </committer>
</commit>
