summaryrefslogtreecommitdiffstats
path: root/tap/tests/fail/test.pl
blob: 73de1a7b65bfb61b39e4e6ca9c130d9c43a87508 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/perl

use warnings;
use strict;

use Test::More;

my $rc = 0;

$rc = plan tests => 2;
diag("Returned: " . sprintf('%d', $rc));

$rc = fail('test to fail');
diag("Returned: $rc");

$rc = fail('test to fail with extra string');
diag("Returned: $rc");