r46964 - in /trunk/libdata-peek-perl: ChangeLog META.yml Peek.pm README debian/changelog t/20_DPeek.t t/30_DDump-s.t t/52_DGrow.t
jawnsy-guest at users.alioth.debian.org
jawnsy-guest at users.alioth.debian.org
Tue Nov 10 15:53:33 UTC 2009
Author: jawnsy-guest
Date: Tue Nov 10 15:53:26 2009
New Revision: 46964
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=46964
Log:
New upstream release
Modified:
trunk/libdata-peek-perl/ChangeLog
trunk/libdata-peek-perl/META.yml
trunk/libdata-peek-perl/Peek.pm
trunk/libdata-peek-perl/README
trunk/libdata-peek-perl/debian/changelog
trunk/libdata-peek-perl/t/20_DPeek.t
trunk/libdata-peek-perl/t/30_DDump-s.t
trunk/libdata-peek-perl/t/52_DGrow.t
Modified: trunk/libdata-peek-perl/ChangeLog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-peek-perl/ChangeLog?rev=46964&op=diff
==============================================================================
--- trunk/libdata-peek-perl/ChangeLog (original)
+++ trunk/libdata-peek-perl/ChangeLog Tue Nov 10 15:53:26 2009
@@ -1,3 +1,8 @@
+2009-11-09 0.29 - H.Merijn Brand <h.m.brand at xs4all.nl>
+
+ * Use skip instead of skip_all for builds that have no DPeek ()
+ * Be more lenient towards the allocated space
+
2009-11-06 0.28 - H.Merijn Brand <h.m.brand at xs4all.nl>
* DDump () now dumps the variable itself, instead of a copy (Zefram)
Modified: trunk/libdata-peek-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-peek-perl/META.yml?rev=46964&op=diff
==============================================================================
--- trunk/libdata-peek-perl/META.yml (original)
+++ trunk/libdata-peek-perl/META.yml Tue Nov 10 15:53:26 2009
@@ -1,6 +1,6 @@
--- #YAML:1.1
name: Data::Peek
-version: 0.28
+version: 0.29
abstract: Modified and extended debugging facilities
license: perl
author:
@@ -10,7 +10,7 @@
provides:
Data::Peek:
file: Peek.pm
- version: 0.28
+ version: 0.29
requires:
perl: 5.006
DynaLoader: 0
Modified: trunk/libdata-peek-perl/Peek.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-peek-perl/Peek.pm?rev=46964&op=diff
==============================================================================
--- trunk/libdata-peek-perl/Peek.pm (original)
+++ trunk/libdata-peek-perl/Peek.pm Tue Nov 10 15:53:26 2009
@@ -6,7 +6,7 @@
use DynaLoader ();
use vars qw( $VERSION @ISA @EXPORT @EXPORT_OK );
-$VERSION = "0.28";
+$VERSION = "0.29";
@ISA = qw( DynaLoader Exporter );
@EXPORT = qw( DDumper DDsort DPeek DDisplay DDump DDual DGrow );
@EXPORT_OK = qw( triplevar );
Modified: trunk/libdata-peek-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-peek-perl/README?rev=46964&op=diff
==============================================================================
--- trunk/libdata-peek-perl/README (original)
+++ trunk/libdata-peek-perl/README Tue Nov 10 15:53:26 2009
@@ -1,49 +1,65 @@
-Module:
- Data::Peek - A collection of low-level debug functions
+=head1 NAME
-Description:
- Modified and extended wrapper functions to make debugging more
- pleasureable.
+Data::Peek - A collection of low-level debug functions
- DDumper is a wrapper around Data::Dumper with always sorted keys.
- The output is however reflowed and not parseable anymore (in most
- cases) as the quotation around the keys is removed.
+=head1 Description
- DDump is a wrapper around perl's core function sv_dump (), which
- should enable you to use the output instead of the default behaviour
- that only prints to STDERR.
+Modified and extended wrapper functions to make debugging more
+pleasurable.
- DPeek is a wrapper around internals Perl_sv_peek
+DDumper () is a wrapper around Data::Dumper with always sorted keys.
+The output is however reflowed and not parsable anymore (in most
+cases) as the quotation around the keys is removed.
- DDump_IO is a wrapper around perl's core function do_sv_dump (),
- which acts like sv_dump (), but to a PerlIO stream, which is only
- available in perl 5.8 and higher.
+DDump () is a wrapper around perl's core function sv_dump (), which
+should enable you to use the output instead of the default behavior
+that only prints to STDERR.
- Recent changes can be (re)viewed in the public GIT repository at
- http://repo.or.cz/w/Data-Peek.git
+DPeek () is a wrapper around internals Perl_sv_peek
-Copying:
- Copyright (c) 2008-2009 H.Merijn Brand. All rights reserved.
+DDump_IO () is a wrapper around perl's core function do_sv_dump (),
+which acts like sv_dump (), but to a PerlIO stream, which is only
+available in perl 5.8 and higher.
- This program is free software; you can redistribute it and/or modify
- it under the same terms as Perl itself.
+=head1 PREREQUISITES
-Prerequisites:
- Perl 5.6.0 and up.
- Some versions of perl on some operating system(s) might not have
- exported the internals (yet). This module won't build then.
+Perl 5.6.0 and up.
+Some versions of perl on some operating system(s) might not have
+exported the internals (yet). This module won't build then.
- If you run a perl that did not export Perl_sv_peek (), DPeek will
- not be available. If you happen to encounter that problem, most
- likely on Windows or AIX, C<export NO_SV_PEEK=1> will make the
- build and test pass (I hope)
+If you run a perl that did not export Perl_sv_peek (), DPeek will
+not be available. If you happen to encounter that problem, most
+likely on Windows or AIX, C<export NO_SV_PEEK=1> will make the
+build and test pass (I hope)
-Build/Installation:
- Standard build/installation:
- perl Makefile.PL
- make
- make test
- make install
+=head1 INSTALLATION
-Author:
- H.Merijn Brand <h.m.brand at xs4all.nl>
+ $ perl Makefile.PL
+ $ make
+ $ make test
+ $ make install
+
+Recent changes can be (re)viewed in the public GIT repository at
+http://repo.or.cz/w/Data-Peek.git
+
+Feel free to clone your own copy:
+
+ $ git clone http://repo.or.cz/r/Data-Peek.git Data-Peek
+
+or get it as a tgz:
+
+ $ wget --output-document=Data-Peek-git.tgz \
+ 'http://repo.or.cz/w/Data-Peek.git?a=snapshot;sf=tgz'
+
+=head1 AUTHOR
+
+H.Merijn Brand <h.m.brand at xs4all.nl>
+
+=head1 COPYRIGHT AND LICENSE
+
+Copyright (c) 2008-2009 H.Merijn Brand. All rights reserved.
+
+This program is free software; you can redistribute it and/or modify
+it under the same terms as Perl itself.
+
+=cut
Modified: trunk/libdata-peek-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-peek-perl/debian/changelog?rev=46964&op=diff
==============================================================================
--- trunk/libdata-peek-perl/debian/changelog (original)
+++ trunk/libdata-peek-perl/debian/changelog Tue Nov 10 15:53:26 2009
@@ -1,3 +1,9 @@
+libdata-peek-perl (0.29-1) UNRELEASED; urgency=low
+
+ * New upstream release
+
+ -- Jonathan Yu <jawnsy at cpan.org> Tue, 10 Nov 2009 07:24:46 -0500
+
libdata-peek-perl (0.28-1) unstable; urgency=low
[ Jonathan Yu ]
Modified: trunk/libdata-peek-perl/t/20_DPeek.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-peek-perl/t/20_DPeek.t?rev=46964&op=diff
==============================================================================
--- trunk/libdata-peek-perl/t/20_DPeek.t (original)
+++ trunk/libdata-peek-perl/t/20_DPeek.t Tue Nov 10 15:53:26 2009
@@ -3,7 +3,7 @@
use strict;
use warnings;
-use Test::More;
+use Test::More tests => 50;
use Test::NoWarnings;
use Data::Peek;
@@ -11,12 +11,8 @@
$| = 1;
my $peek = DPeek (0);
-if ($peek =~ m/^Your perl did not/) {
- plan skip_all => $peek;
- }
-else {
- plan tests => 50;
- }
+SKIP: {
+$peek =~ m/^Your perl did not/ and skip ($peek, 49);
like (DPeek ($/), qr'^PVMG\("\\(n|12)"\\0\)', '$/');
is (DPeek ($\), 'PVMG()', '$\\');
@@ -92,5 +88,5 @@
is (DPeek (*VAR{IO}), '\IO()', ' *VAR{IO}');
is (DPeek (*VAR{FORMAT}),$]<5.008?'SV_UNDEF':'\FM()',' *VAR{FORMAT}');
}
-
+}
1;
Modified: trunk/libdata-peek-perl/t/30_DDump-s.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-peek-perl/t/30_DDump-s.t?rev=46964&op=diff
==============================================================================
--- trunk/libdata-peek-perl/t/30_DDump-s.t (original)
+++ trunk/libdata-peek-perl/t/30_DDump-s.t Tue Nov 10 15:53:26 2009
@@ -45,7 +45,7 @@
$dump =~ s/\b0x[0-9a-f]+\b/0x****/g;
$dump =~ s/\b(REFCNT =) [0-9]{4,}/$1 -1/g;
- $dump =~ s/\bLEN = [1-7]\b/LEN = 8/; # aligned at long long?
+ $dump =~ s/\bLEN = (?:[1-9]|1[0-6])\b/LEN = 8/; # aligned at long long?
$dump =~ s/\bPADBUSY\b,?//g if $] < 5.010;
@@ -53,6 +53,7 @@
$dump =~ s/,?\bIsUV\b//g if $] < 5.008;
$in =~ s/[\s\n]+/ /g;
+
is ($dump, $out, "DDump ($in)");
}
}
Modified: trunk/libdata-peek-perl/t/52_DGrow.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdata-peek-perl/t/52_DGrow.t?rev=46964&op=diff
==============================================================================
--- trunk/libdata-peek-perl/t/52_DGrow.t (original)
+++ trunk/libdata-peek-perl/t/52_DGrow.t Tue Nov 10 15:53:26 2009
@@ -3,7 +3,7 @@
use strict;
use warnings;
-use Test::More tests => 10;
+use Test::More tests => 15;
use Test::NoWarnings;
use Data::Peek qw( DGrow DDump );
@@ -14,12 +14,17 @@
ok ($dd{LEN} <= 16);
ok (my $l = DGrow ($x, 10000), "Set to 10000");
is (length ($x), 0, "Variable content");
-is ($l, 10000, "returned LEN");
+ok ($l >= 10000, "returned LEN >= 10000");
+ok ($l <= 10240, "returned LEN <= 10240");
%dd = DDump $x;
-is ($dd{LEN}, 10000, "LEN in variable");
-is (DGrow (\$x, 20000), 20000, "Set to 20000");
+ok ($dd{LEN} >= 10000, "LEN in variable >= 10000");
+ok ($dd{LEN} <= 10240, "LEN in variable <= 10240");
+ok ($l = DGrow (\$x, 20000), "Set to 20000");
+ok ($l >= 20000, "LEN in variable >= 20000");
+ok ($l <= 20480, "LEN in variable <= 20480");
%dd = DDump $x;
-is ($dd{LEN}, 20000);
-is (DGrow ($x, 20), 20000, "Don't shrink");
+ok ($dd{LEN} >= 20000, "LEN in variable >= 20000");
+ok ($dd{LEN} <= 20480, "LEN in variable <= 20480");
+is (DGrow ($x, 20), $l, "Don't shrink");
1;
More information about the Pkg-perl-cvs-commits
mailing list