]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/commitdiff
This is 1.12 v1.12
authorVincent Pit <vince@profvince.com>
Sun, 29 Nov 2009 16:40:03 +0000 (17:40 +0100)
committerVincent Pit <vince@profvince.com>
Sun, 29 Nov 2009 16:40:03 +0000 (17:40 +0100)
24 files changed:
Changes
META.yml
README
lib/Test/Valgrind.pm
lib/Test/Valgrind/Action.pm
lib/Test/Valgrind/Action/Captor.pm
lib/Test/Valgrind/Action/Suppressions.pm
lib/Test/Valgrind/Action/Test.pm
lib/Test/Valgrind/Carp.pm
lib/Test/Valgrind/Command.pm
lib/Test/Valgrind/Command/Aggregate.pm
lib/Test/Valgrind/Command/Perl.pm
lib/Test/Valgrind/Command/PerlScript.pm
lib/Test/Valgrind/Component.pm
lib/Test/Valgrind/Parser.pm
lib/Test/Valgrind/Parser/Suppressions/Text.pm
lib/Test/Valgrind/Parser/Text.pm
lib/Test/Valgrind/Parser/XML.pm
lib/Test/Valgrind/Parser/XML/Twig.pm
lib/Test/Valgrind/Report.pm
lib/Test/Valgrind/Session.pm
lib/Test/Valgrind/Suppressions.pm
lib/Test/Valgrind/Tool.pm
lib/Test/Valgrind/Tool/memcheck.pm

diff --git a/Changes b/Changes
index 88271440c782e2ac8c0282f726308d1a13a4d713..72782987d780bc723701489953412ac34db3968c 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,12 @@
 Revision history for Test-Valgrind
 
 Revision history for Test-Valgrind
 
+1.12    2009-11-29 16:45 UTC
+        + Doc : The front documentation in Test::Valgrind was improved.
+        + Fix : Don't install Valgrind.so, as it's only used for testing.
+        + Fix : "Non-portable hex number" warnings.
+        + Fix : Old versions of valgrind could leave some Z-encoded symbols in
+                the stack traces. We now make sure they're always decoded.
+
 1.11    2009-10-08 20:55 UTC
         + Doc : Completion and improvements.
         + Fix : Work around Kwalitee test misfailures.
 1.11    2009-10-08 20:55 UTC
         + Doc : Completion and improvements.
         + Fix : Work around Kwalitee test misfailures.
index be42e0e95b9ab772ae628e9898921646241f294d..9b6bac604b574fbdfe0a94cd205955dcf12a1bae 100644 (file)
--- a/META.yml
+++ b/META.yml
@@ -1,6 +1,6 @@
 --- #YAML:1.0
 name:               Test-Valgrind
 --- #YAML:1.0
 name:               Test-Valgrind
-version:            1.11
+version:            1.12
 abstract:           Generate suppressions, analyse and test any command with valgrind.
 author:
     - Vincent Pit <perl@profvince.com>
 abstract:           Generate suppressions, analyse and test any command with valgrind.
 author:
     - Vincent Pit <perl@profvince.com>
diff --git a/README b/README
index c032c3013c5ce8f477ab53186a87a1eddfe7ac8c..72776c2f01a09a7a9cdc2beecff05d3ea7e04a14 100644 (file)
--- a/README
+++ b/README
@@ -3,7 +3,7 @@ NAME
     with valgrind.
 
 VERSION
     with valgrind.
 
 VERSION
-    Version 1.11
+    Version 1.12
 
 SYNOPSIS
         # From the command-line
 
 SYNOPSIS
         # From the command-line
@@ -24,17 +24,21 @@ SYNOPSIS
 DESCRIPTION
     This module is a front-end to the "Test::Valgrind::*" API that lets you
     run Perl code through the "memcheck" tool of the "valgrind" memory
 DESCRIPTION
     This module is a front-end to the "Test::Valgrind::*" API that lets you
     run Perl code through the "memcheck" tool of the "valgrind" memory
-    debugger, to test it for memory errors and leaks. If they aren't
-    available yet, it will first generate suppressions for the current
-    "perl" interpreter and store them in the portable flavour of
+    debugger, to test for memory errors and leaks. If they aren't available
+    yet, it will first generate suppressions for the current "perl"
+    interpreter and store them in the portable flavour of
     ~/.perl/Test-Valgrind/suppressions/$VERSION. The actual run will then
     take place, and tests will be passed or failed according to the result
     of the analysis.
 
     ~/.perl/Test-Valgrind/suppressions/$VERSION. The actual run will then
     take place, and tests will be passed or failed according to the result
     of the analysis.
 
-    The complete API is much more versatile than this. It allows you to run
-    *any* executable under valgrind, generate the corresponding suppressions
-    and convert the analysis output to TAP so that it can be incorporated
-    into your project's testsuite.
+    The complete API is much more versatile than this. By declaring an
+    appropriate Test::Valgrind::Command class, you can run any executable
+    (that is, not only Perl scripts) under valgrind, generate the
+    corresponding suppressions on-the-fly and convert the analysis result to
+    TAP output so that it can be incorporated into your project's testsuite.
+    If you're not interested in producing TAP, you can output the results in
+    whatever format you like (for example HTML pages) by defining your own
+    Test::Valgrind::Action class.
 
     Due to the nature of perl's memory allocator, this module can't track
     leaks of Perl objects. This includes non-mortalized scalars and memory
 
     Due to the nature of perl's memory allocator, this module can't track
     leaks of Perl objects. This includes non-mortalized scalars and memory
@@ -103,10 +107,16 @@ METHODS
     In the parent process, "import" calls "analyse" with the arguments it
     received itself - except that if no "file" option was supplied, it tries
     to pick the first caller context that looks like a script. When the
     In the parent process, "import" calls "analyse" with the arguments it
     received itself - except that if no "file" option was supplied, it tries
     to pick the first caller context that looks like a script. When the
-    analyse ends, it exits with the status that was returned.
+    analysis ends, it exits with the status returned by the action (for the
+    default TAP-generator action, it's the number of failed tests).
 
     In the child process, it just "return"s so that the calling code is
 
     In the child process, it just "return"s so that the calling code is
-    actually run under "valgrind".
+    actually run under "valgrind", albeit two side-effects :
+
+    *   Perl::Destruct::Level is loaded and the destruction level is set to
+        3.
+
+    *   Autoflush on "STDOUT" is turned on.
 
 VARIABLES
   $dl_unload
 
 VARIABLES
   $dl_unload
@@ -118,9 +128,9 @@ VARIABLES
 
 CAVEATS
     Perl 5.8 is notorious for leaking like there's no tomorrow, so the
 
 CAVEATS
     Perl 5.8 is notorious for leaking like there's no tomorrow, so the
-    suppressions are very likely not to be very accurate on it. Anyhow,
-    results will most likely be better if your perl is built with debugging
-    enabled. Using the latest "valgrind" available will also help.
+    suppressions are very likely not to be complete on it. You also have a
+    better chance to get more accurate results if your perl is built with
+    debugging enabled. Using the latest "valgrind" available will also help.
 
     This module is not really secure. It's definitely not taint safe. That
     shouldn't be a problem for test files.
 
     This module is not really secure. It's definitely not taint safe. That
     shouldn't be a problem for test files.
@@ -160,12 +170,17 @@ SUPPORT
         perldoc Test::Valgrind
 
 ACKNOWLEDGEMENTS
         perldoc Test::Valgrind
 
 ACKNOWLEDGEMENTS
-    Rafaël Garcia-Suarez, for writing and instructing me about the
-    existence of Perl::Destruct::Level (Elizabeth Mattijsen is a close
-    second).
+    Rafaël Garcia-Suarez, for writing and instructing me about the existence
+    of Perl::Destruct::Level (Elizabeth Mattijsen is a close second).
 
     H.Merijn Brand, for daring to test this thing.
 
 
     H.Merijn Brand, for daring to test this thing.
 
+    David Cantrell, for providing shell access to one of his smokers where
+    the tests were failing.
+
+    The debian-perl team, for offering all the feedback they could regarding
+    the build issues they met.
+
     All you people that showed interest in this module, which motivated me
     into completely rewriting it.
 
     All you people that showed interest in this module, which motivated me
     into completely rewriting it.
 
index 483e713f5f03721a5c449e8a56fe22aefc2942d1..bca1141bfbb5819e818570a89a9e54aa51876a6d 100644 (file)
@@ -9,11 +9,11 @@ Test::Valgrind - Generate suppressions, analyse and test any command with valgri
 
 =head1 VERSION
 
 
 =head1 VERSION
 
-Version 1.11
+Version 1.12
 
 =cut
 
 
 =cut
 
-our $VERSION = '1.11';
+our $VERSION = '1.12';
 
 =head1 SYNOPSIS
 
 
 =head1 SYNOPSIS
 
index f4a03dc1a6d655148c17af4e3f8585cae989dd35..ac207786c33a9c13f9b2284f2ff3752f7fe8677b 100644 (file)
@@ -9,11 +9,11 @@ Test::Valgrind::Action - Base class for Test::Valgrind actions.
 
 =head1 VERSION
 
 
 =head1 VERSION
 
-Version 1.11
+Version 1.12
 
 =cut
 
 
 =cut
 
-our $VERSION = '1.11';
+our $VERSION = '1.12';
 
 =head1 DESCRIPTION
 
 
 =head1 DESCRIPTION
 
index 8463fda7d7d2b4e78cebecd0d9ec548a5c7aab29..92027084a4a3f2784180a9947930a6a87dd632cd 100644 (file)
@@ -9,11 +9,11 @@ Test::Valgrind::Action::Captor - Mock Test::Valgrind::Action for capturing outpu
 
 =head1 VERSION
 
 
 =head1 VERSION
 
-Version 1.11
+Version 1.12
 
 =cut
 
 
 =cut
 
-our $VERSION = '1.11';
+our $VERSION = '1.12';
 
 =head1 DESCRIPTION
 
 
 =head1 DESCRIPTION
 
index 5dbdddd6034e9c014acdf876196cb65705073479..c80d56f42e9c92b752a7f96f75613861ab995eac 100644 (file)
@@ -9,11 +9,11 @@ Test::Valgrind::Action::Suppressions - Generate suppressions for a given tool.
 
 =head1 VERSION
 
 
 =head1 VERSION
 
-Version 1.11
+Version 1.12
 
 =cut
 
 
 =cut
 
-our $VERSION = '1.11';
+our $VERSION = '1.12';
 
 =head1 DESCRIPTION
 
 
 =head1 DESCRIPTION
 
index ab802a58936b4eed4522d444a2076ae8db9cfef9..316bb3542facd1770edf36ccf075f9bfde0a94d5 100644 (file)
@@ -9,11 +9,11 @@ Test::Valgrind::Action::Test - Test that an analysis didn't generate any error r
 
 =head1 VERSION
 
 
 =head1 VERSION
 
-Version 1.11
+Version 1.12
 
 =cut
 
 
 =cut
 
-our $VERSION = '1.11';
+our $VERSION = '1.12';
 
 =head1 DESCRIPTION
 
 
 =head1 DESCRIPTION
 
index 90884ebb15e786e865ff7547765df45f8b22d5d6..dd21641a0b87b11c090f89f9646afe16438cd0ff 100644 (file)
@@ -9,11 +9,11 @@ Test::Valgrind::Carp - Carp-like private methods for Test::Valgrind objects.
 
 =head1 VERSION
 
 
 =head1 VERSION
 
-Version 1.11
+Version 1.12
 
 =cut
 
 
 =cut
 
-our $VERSION = '1.11';
+our $VERSION = '1.12';
 
 =head1 DESCRIPTION
 
 
 =head1 DESCRIPTION
 
index 0a649d65afeab3ffbf7f063c359bc4d9b183bd2d..9e1e11643f9011f6c586978e817b0bed669f6b5a 100644 (file)
@@ -9,11 +9,11 @@ Test::Valgrind::Command - Base class for Test::Valgrind commands.
 
 =head1 VERSION
 
 
 =head1 VERSION
 
-Version 1.11
+Version 1.12
 
 =cut
 
 
 =cut
 
-our $VERSION = '1.11';
+our $VERSION = '1.12';
 
 =head1 DESCRIPTION
 
 
 =head1 DESCRIPTION
 
index aa78fd898a317f8bf1a590dfe53c1591561c1e75..f7a7eae5aae534ce5092a89ef5c07d0cae9e4385 100644 (file)
@@ -9,11 +9,11 @@ Test::Valgrind::Command::Aggregate - A Test::Valgrind command that aggregates se
 
 =head1 VERSION
 
 
 =head1 VERSION
 
-Version 1.11
+Version 1.12
 
 =cut
 
 
 =cut
 
-our $VERSION = '1.11';
+our $VERSION = '1.12';
 
 =head1 DESCRIPTION
 
 
 =head1 DESCRIPTION
 
index 6dda0e8b9a604c88917ebfd20243b843ca730c68..1894b8d813feb8c1d16754df1aaf2521acafeaab 100644 (file)
@@ -9,11 +9,11 @@ Test::Valgrind::Command::Perl - A Test::Valgrind command that invokes perl.
 
 =head1 VERSION
 
 
 =head1 VERSION
 
-Version 1.11
+Version 1.12
 
 =cut
 
 
 =cut
 
-our $VERSION = '1.11';
+our $VERSION = '1.12';
 
 =head1 DESCRIPTION
 
 
 =head1 DESCRIPTION
 
index 331a281f297112ea107ea25796e67452834125c2..a50c30ff3bb2d4a6ffd095d918f19819e8d8013a 100644 (file)
@@ -9,11 +9,11 @@ Test::Valgrind::Command::PerlScript - A Test::Valgrind command that invokes a pe
 
 =head1 VERSION
 
 
 =head1 VERSION
 
-Version 1.11
+Version 1.12
 
 =cut
 
 
 =cut
 
-our $VERSION = '1.11';
+our $VERSION = '1.12';
 
 =head1 DESCRIPTION
 
 
 =head1 DESCRIPTION
 
index bcba4476fce01fc2ba2300e407e78659cf8b26e1..2b790e305b87ff5690b96aaab57ffc0d7e23fbc7 100644 (file)
@@ -9,11 +9,11 @@ Test::Valgrind::Component - Base class for Test::Valgrind components.
 
 =head1 VERSION
 
 
 =head1 VERSION
 
-Version 1.11
+Version 1.12
 
 =cut
 
 
 =cut
 
-our $VERSION = '1.11';
+our $VERSION = '1.12';
 
 =head1 DESCRIPTION
 
 
 =head1 DESCRIPTION
 
index 4a07478cd8e4eff1e0556e8850b8260379f471bd..5a8a9cd4e5d108ade81a861090e1b2b570fe2db5 100644 (file)
@@ -9,11 +9,11 @@ Test::Valgrind::Parser - Base class for Test::Valgrind parsers.
 
 =head1 VERSION
 
 
 =head1 VERSION
 
-Version 1.11
+Version 1.12
 
 =cut
 
 
 =cut
 
-our $VERSION = '1.11';
+our $VERSION = '1.12';
 
 =head1 DESCRIPTION
 
 
 =head1 DESCRIPTION
 
index c8e6e9f73ee604c734b34a9059392159a317554a..9c35155a3b6ee13ba8cddf629e3a8f9e75eadc2d 100644 (file)
@@ -9,11 +9,11 @@ Test::Valgrind::Parser::Suppressions::Text - Parse valgrind suppressions output
 
 =head1 VERSION
 
 
 =head1 VERSION
 
-Version 1.11
+Version 1.12
 
 =cut
 
 
 =cut
 
-our $VERSION = '1.11';
+our $VERSION = '1.12';
 
 =head1 DESCRIPTION
 
 
 =head1 DESCRIPTION
 
index f6098a7e9c82261e2f2427bdb9969e5eb63fab4f..abf4e9d55317c7500c6aee279133f067a9782ec8 100644 (file)
@@ -9,11 +9,11 @@ Test::Valgrind::Parser::Text - Parse valgrind output as a text stream.
 
 =head1 VERSION
 
 
 =head1 VERSION
 
-Version 1.11
+Version 1.12
 
 =cut
 
 
 =cut
 
-our $VERSION = '1.11';
+our $VERSION = '1.12';
 
 =head1 DESCRIPTION
 
 
 =head1 DESCRIPTION
 
index 4c0216ff4c4cb6b94111791128f01afbb1d132cd..7232203fac622086ef6a145b35b90f805c5e531c 100644 (file)
@@ -9,11 +9,11 @@ Test::Valgrind::Parser::XML - Parse valgrind output as an XML stream.
 
 =head1 VERSION
 
 
 =head1 VERSION
 
-Version 1.11
+Version 1.12
 
 =cut
 
 
 =cut
 
-our $VERSION = '1.11';
+our $VERSION = '1.12';
 
 =head1 DESCRIPTION
 
 
 =head1 DESCRIPTION
 
index e4acb2cd2bbb24b834e36f6e3920ef9bd6116977..8b6d29baf32931745b5b2342208effcf8ee5dace 100644 (file)
@@ -9,11 +9,11 @@ Test::Valgrind::Parser::XML::Twig - Parse valgrind XML output with XML::Twig.
 
 =head1 VERSION
 
 
 =head1 VERSION
 
-Version 1.11
+Version 1.12
 
 =cut
 
 
 =cut
 
-our $VERSION = '1.11';
+our $VERSION = '1.12';
 
 =head1 DESCRIPTION
 
 
 =head1 DESCRIPTION
 
@@ -190,7 +190,7 @@ This program is free software; you can redistribute it and/or modify it under th
 
 package Test::Valgrind::Parser::XML::Twig::Elt;
 
 
 package Test::Valgrind::Parser::XML::Twig::Elt;
 
-our $VERSION = '1.11';
+our $VERSION = '1.12';
 
 BEGIN { require XML::Twig; }
 
 
 BEGIN { require XML::Twig; }
 
index 5bc50b00b7c2babd9afc122b3f90a1fc276c894c..67b6ce9fa98ded9109c15fa6fd04561dd8aa071c 100644 (file)
@@ -9,11 +9,11 @@ Test::Valgrind::Report - Base class for Test::Valgrind error reports.
 
 =head1 VERSION
 
 
 =head1 VERSION
 
-Version 1.11
+Version 1.12
 
 =cut
 
 
 =cut
 
-our $VERSION = '1.11';
+our $VERSION = '1.12';
 
 =head1 DESCRIPTION
 
 
 =head1 DESCRIPTION
 
index 27aa97344c3d8b4c474c889e3ce9f06df2843ea5..81f195654edd8cf5fd6d93716d11ca8d5232b5e9 100644 (file)
@@ -9,11 +9,11 @@ Test::Valgrind::Session - Test::Valgrind session object.
 
 =head1 VERSION
 
 
 =head1 VERSION
 
-Version 1.11
+Version 1.12
 
 =cut
 
 
 =cut
 
-our $VERSION = '1.11';
+our $VERSION = '1.12';
 
 =head1 DESCRIPTION
 
 
 =head1 DESCRIPTION
 
index dc1878280c3619fca6cc0b2366d017fbd9a90f2f..cd59fc2126015cb617d5e82dc3d61060e5c23241 100644 (file)
@@ -9,11 +9,11 @@ Test::Valgrind::Suppressions - Generate suppressions for given tool and command.
 
 =head1 VERSION
 
 
 =head1 VERSION
 
-Version 1.11
+Version 1.12
 
 =cut
 
 
 =cut
 
-our $VERSION = '1.11';
+our $VERSION = '1.12';
 
 =head1 DESCRIPTION
 
 
 =head1 DESCRIPTION
 
index dc7ba2f0f2376cda4a042dc38c7a484c4de1a217..186b75a0e8138b1c8b60cb94cd2885008bae8e81 100644 (file)
@@ -9,11 +9,11 @@ Test::Valgrind::Tool - Base class for Test::Valgrind tools.
 
 =head1 VERSION
 
 
 =head1 VERSION
 
-Version 1.11
+Version 1.12
 
 =cut
 
 
 =cut
 
-our $VERSION = '1.11';
+our $VERSION = '1.12';
 
 =head1 DESCRIPTION
 
 
 =head1 DESCRIPTION
 
index 281d3f3c7dca8120956d5fd0a2173e8cd848e161..2c0c6840bee1b1c521b0f924d3f0b8c114c1dfad 100644 (file)
@@ -9,11 +9,11 @@ Test::Valgrind::Tool::memcheck - Run an analysis through the memcheck tool.
 
 =head1 VERSION
 
 
 =head1 VERSION
 
-Version 1.11
+Version 1.12
 
 =cut
 
 
 =cut
 
-our $VERSION = '1.11';
+our $VERSION = '1.12';
 
 =head1 DESCRIPTION
 
 
 =head1 DESCRIPTION
 
@@ -161,7 +161,7 @@ package Test::Valgrind::Tool::memcheck::Report;
 
 use base qw/Test::Valgrind::Report/;
 
 
 use base qw/Test::Valgrind::Report/;
 
-our $VERSION = '1.11';
+our $VERSION = '1.12';
 
 my @kinds = qw/
  InvalidFree
 
 my @kinds = qw/
  InvalidFree