X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan_tools%2Flibtap%2Ftests%2Ffail%2Ftest.pl;fp=ccan_tools%2Flibtap%2Ftests%2Ffail%2Ftest.pl;h=c13904d034f66c09b59cce7972ce96888d9b14c1;hp=0000000000000000000000000000000000000000;hb=7bbd49fdb03503688dd34ab860e0e02e852ed267;hpb=fdfcdafbfa7957b6ca393bb4000fbaad3813a61a diff --git a/ccan_tools/libtap/tests/fail/test.pl b/ccan_tools/libtap/tests/fail/test.pl new file mode 100644 index 00000000..c13904d0 --- /dev/null +++ b/ccan_tools/libtap/tests/fail/test.pl @@ -0,0 +1,16 @@ +#!/usr/bin/perl + +use warnings; +use strict; + +use Test::More; + +my $rc = 0; + +plan tests => 2; + +$rc = fail('test to fail'); +diag("Returned: $rc"); + +$rc = fail('test to fail with extra string'); +diag("Returned: $rc");