- updated to 0.13

- Fix tests for older perls
  
      - Use ">= 0", instead of "== 0" for no_leaks_ok()
      - Add count_sv() to count all the SVs in a perl interpreter
  
      - Resolve RT #58133: "False-positive related to XS code"

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-LeakTrace?expand=0&rev=10
This commit is contained in:
Stephan Kulow 2011-05-01 11:01:41 +00:00 committed by Git OBS Bridge
parent 49adab7455
commit 9e254f3ea1
4 changed files with 41 additions and 36 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c466004f8271941c631e6013cd6f751a74de826cd90291932ceff4b5cb089163
size 41576

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5dfd39d409c8fe872d1b17005e3a8e048d5d9bb91201643d0c57285785c9ab4f
size 49022

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Sun May 1 10:39:25 UTC 2011 - coolo@opensuse.org
- updated to 0.13
- Fix tests for older perls
- Use ">= 0", instead of "== 0" for no_leaks_ok()
- Add count_sv() to count all the SVs in a perl interpreter
- Resolve RT #58133: "False-positive related to XS code"
-------------------------------------------------------------------
Tue Mar 15 09:55:14 UTC 2011 - cfarrell@novell.com

View File

@ -1,5 +1,5 @@
#
# spec file for package perl-Test-LeakTrace
# spec file for package perl-Test-LeakTrace (Version 0.13)
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@ -15,47 +15,41 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-Test-LeakTrace
%define real_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: Traces memory leaks
Url: http://search.cpan.org/perldoc?Test::LeakTrace
Group: Development/Libraries/Perl
Version: 0.13
Release: 1
License: GPL+ or Artistic
Version: 0.10
Release: 8
Source: %{real_name}-%{version}.tar.bz2
BuildRequires: perl-macros
%define cpan_name Test-LeakTrace
Summary: Traces memory leaks
Url: http://search.cpan.org/dist/Test-LeakTrace/
Group: Development/Libraries/Perl
Source: http://www.cpan.org/authors/id/G/GF/GFUJI/%{cpan_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
%{perl_requires}
%description
Test::LeakTrace provides several functions that trace memory leaks. This module
scans arenas, the memory allocation system, so it can detect any leaked SVs in
given blocks.
Leaked SVs are SVs which are not released after the end of the scope they have
been created. These SVs include global variables and internal caches. For
example, if you call a method in a tracing block, perl might prepare a cache
for the method. Thus, to trace true leaks, no_leaks_ok() and leaks_cmp_ok()
executes a block more than once.e
Author:
-------
Goro Fuji(gfx) <gfuji(at)cpan.org>.
'Test::LeakTrace' provides several functions that trace memory leaks. This
module scans arenas, the memory allocation system, so it can detect any
leaked SVs in given blocks.
*Leaked SVs* are SVs which are not released after the end of the scope they
have been created. These SVs include global variables and internal caches.
For example, if you call a method in a tracing block, perl might prepare a
cache for the method. Thus, to trace true leaks, 'no_leaks_ok()' and
'leaks_cmp_ok()' executes a block more than once.
%prep
%setup -q -n %{real_name}-%{version}
%setup -q -n %{cpan_name}-%{version}
find . -type f -print0 | xargs -0 chmod 644
%build
perl Makefile.PL
make %{?jobs:-j%jobs}
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}
%check
make test
%{__make} test
%install
%perl_make_install
@ -63,10 +57,10 @@ make test
%perl_gen_filelist
%clean
rm -rf %{buildroot}
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(0644, root, root, 0755)
%doc Changes README MANIFEST
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%changelog