X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=dev%2Farm%2Flibtest-pod-perl%2Flibtest-pod-perl-1.26%2Ft%2Fmissing-file.t;fp=dev%2Farm%2Flibtest-pod-perl%2Flibtest-pod-perl-1.26%2Ft%2Fmissing-file.t;h=ded0dcaa49affedd4105d562034504a242ec44b7;hb=f477fa73365d491991707e7ed9217b48d6994551;hp=0000000000000000000000000000000000000000;hpb=da95c414033799c3a62606f299c3c00b5c77ca11;p=dh-make-perl diff --git a/dev/arm/libtest-pod-perl/libtest-pod-perl-1.26/t/missing-file.t b/dev/arm/libtest-pod-perl/libtest-pod-perl-1.26/t/missing-file.t new file mode 100644 index 0000000..ded0dca --- /dev/null +++ b/dev/arm/libtest-pod-perl/libtest-pod-perl-1.26/t/missing-file.t @@ -0,0 +1,29 @@ +#!perl -T + +use strict; + +use Test::Builder::Tester tests => 3; +use Test::More; + +BEGIN { + use_ok( 'Test::Pod' ); +} + +MISSING_FILE: { + my $file = 't/non-existent.pod'; + test_out( "not ok 1 - I hope the file is there" ); + test_fail(+1); + pod_file_ok( $file, "I hope the file is there" ); + test_diag( "$file does not exist" ); + test_test( "$file is bad" ); +} + + +MISSING_FILE_NO_MESSAGE: { + my $file = 't/non-existent.pod'; + test_out( "not ok 1 - POD test for $file" ); + test_fail(+1); + pod_file_ok( $file ); + test_diag( "$file does not exist" ); + test_test( "$file is bad" ); +}