summaryrefslogtreecommitdiff
path: root/cpan/Test-Simple/t/Tester/tbt_09do_script.pl
diff options
context:
space:
mode:
Diffstat (limited to 'cpan/Test-Simple/t/Tester/tbt_09do_script.pl')
-rw-r--r--cpan/Test-Simple/t/Tester/tbt_09do_script.pl13
1 files changed, 13 insertions, 0 deletions
diff --git a/cpan/Test-Simple/t/Tester/tbt_09do_script.pl b/cpan/Test-Simple/t/Tester/tbt_09do_script.pl
new file mode 100644
index 0000000000..590a03b085
--- /dev/null
+++ b/cpan/Test-Simple/t/Tester/tbt_09do_script.pl
@@ -0,0 +1,13 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+isnt($0, __FILE__, 'code is not executing directly');
+
+test_out("not ok 1 - one");
+test_fail(+1);
+ok(0,"one");
+test_test('test_fail caught fail message inside a do');
+
+1;