[Pkg-nagios-changes] [SCM] Debian packaging for mod gearman. branch, upstream, updated. upstream/1.0.6-34-gd3fb2ec

Sven Nierlein sven at nierlein.de
Wed Aug 24 09:21:51 UTC 2011


The following commit has been merged in the upstream branch:
commit 8a45433644a72e9d0ebbd9c83b6806763a57a38f
Author: Sven Nierlein <sven at nierlein.de>
Date:   Mon Jul 18 16:13:47 2011 +0200

    nicer tests

diff --git a/t/test_all.pl b/t/test_all.pl
index 4d578a2..6c8db1b 100755
--- a/t/test_all.pl
+++ b/t/test_all.pl
@@ -13,16 +13,18 @@ plan(tests => 13);
 `make`;
 is($?, 0, "build rc is $?");
 
-my $vallog = '/tmp/valgrind.log';
+my $vallog  = '/tmp/valgrind.log';
+my $testlog = '/tmp/mod_gearman_test.log';
 for my $test (qw(01_utils 02_full 03_exec 04_log)) {
     `make $test`;
     is($?, 0, "$test build rc is $?");
 
-    `valgrind --tool=memcheck --leak-check=yes --leak-check=full --show-reachable=yes --track-origins=yes --log-file=/tmp/valgrind.log ./$test >/dev/null`;
-    is($?, 0, "$test valgrind exit code is $?");
+    `valgrind --tool=memcheck --leak-check=yes --leak-check=full --show-reachable=yes --track-origins=yes --log-file=/tmp/valgrind.log ./$test >$testlog 2>&1`;
+    is($?, 0, "$test valgrind exit code is $?") or diag(`cat $testlog`);
 
     is(qx(grep "ERROR SUMMARY: " $vallog | grep -v "ERROR SUMMARY: 0 errors"), "", "valgrind Error Summary")
       or BAIL_OUT("check memory $test in $vallog");
 }
 
 unlink($vallog);
+unlink($testlog);

-- 
Debian packaging for mod gearman.



More information about the Pkg-nagios-changes mailing list