]> git.ozlabs.org Git - ccan/blobdiff - ccan_tools/libtap/tests/fail/test.pl
Include all the tools under ccan_tools dir, hacked to work for me.
[ccan] / ccan_tools / libtap / tests / fail / test.pl
diff --git a/ccan_tools/libtap/tests/fail/test.pl b/ccan_tools/libtap/tests/fail/test.pl
new file mode 100644 (file)
index 0000000..c13904d
--- /dev/null
@@ -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");