]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/blobdiff - t/20-good.t
Capture STDOUT so that its output doesn't mix with our test results
[perl/modules/Test-Valgrind.git] / t / 20-good.t
index 781bf385df45e51280821c700820c92e31fbcbf1..4c31222b06767d8a8a91cd726a378beaab174002 100644 (file)
@@ -4,7 +4,12 @@ use strict;
 use warnings;
 
 use Test::More;
-eval 'use Test::Valgrind'; # diag => 1';
-plan skip_all => 'Test::Valgrind is required to run test your distribution with valgrind' if $@;
+use lib qw{blib/archpub};
+eval 'use Test::Valgrind';
+if ($@) {
+ diag $@;
+ plan skip_all => 'Test::Valgrind is required to run test your distribution with valgrind';
+}
 
-1;
+plan tests => 1;
+fail('shouldn\'t see this');