summaryrefslogtreecommitdiff
path: root/cpan/Test-Simple/t/skipall.t
diff options
context:
space:
mode:
Diffstat (limited to 'cpan/Test-Simple/t/skipall.t')
-rw-r--r--cpan/Test-Simple/t/skipall.t33
1 files changed, 33 insertions, 0 deletions
diff --git a/cpan/Test-Simple/t/skipall.t b/cpan/Test-Simple/t/skipall.t
new file mode 100644
index 0000000000..5491be126e
--- /dev/null
+++ b/cpan/Test-Simple/t/skipall.t
@@ -0,0 +1,33 @@
+#!/usr/bin/perl -w
+
+BEGIN {
+ if( $ENV{PERL_CORE} ) {
+ chdir 't';
+ @INC = ('../lib', 'lib');
+ }
+ else {
+ unshift @INC, 't/lib';
+ }
+}
+
+use strict;
+
+use Test::More;
+
+my $Test = Test::Builder->create;
+$Test->plan(tests => 2);
+
+my $out = '';
+my $err = '';
+{
+ my $tb = Test::More->builder;
+ $tb->output(\$out);
+ $tb->failure_output(\$err);
+
+ plan 'skip_all';
+}
+
+END {
+ $Test->is_eq($out, "1..0 # SKIP\n");
+ $Test->is_eq($err, "");
+}