~ubuntu-branches/ubuntu/quantal/ruby1.9.1/quantal

« back to all changes in this revision

Viewing changes to debian/patches/091207_test_dl_free_func.diff

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2011-09-24 19:16:17 UTC
  • mfrom: (1.1.8 upstream) (13.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20110924191617-o1qz4rcmqjot8zuy
Tags: 1.9.3~rc1-1
* New upstream release: 1.9.3 RC1.
  + Includes load.c fixes. Closes: #639959.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh /usr/share/dpatch/dpatch-run
2
 
## 091207_test_dl_free_func.dpatch by akira yamada <akira@debian.org>
3
 
##
4
 
## All lines beginning with `## DP:' are a description of the patch.
5
 
## DP: No description.
6
 
 
7
 
@DPATCH@
8
 
Index: b/test/dl/test_cptr.rb
9
 
===================================================================
10
 
--- a/test/dl/test_cptr.rb      2010-07-20 21:45:45.000000000 +0900
11
 
+++ b/test/dl/test_cptr.rb      2010-07-20 21:46:17.000000000 +0900
12
 
@@ -16,14 +16,14 @@
13
 
         include DL
14
 
         @libc = dlopen(LIBC_SO)
15
 
         @libm = dlopen(LIBM_SO)
16
 
-        free = CFunc.new(@libc['free'], TYPE_VOID, 'free')
17
 
+        free = CFunc.new(DL::RUBY_FREE, TYPE_VOID, 'free')
18
 
         ptr = CPtr.malloc(4)
19
 
         ptr.free = free
20
 
         free.ptr
21
 
         ptr.free.ptr
22
 
       End
23
 
 
24
 
-      free = CFunc.new(@libc['free'], TYPE_VOID, 'free')
25
 
+      free = CFunc.new(DL::RUBY_FREE, TYPE_VOID, 'free')
26
 
       ptr = CPtr.malloc(4)
27
 
       ptr.free = free
28