summaryrefslogtreecommitdiff
path: root/lib/Test/t/skip.t
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Test/t/skip.t')
-rw-r--r--lib/Test/t/skip.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Test/t/skip.t b/lib/Test/t/skip.t
index 7db35e65dc..a6d1cf4c3c 100644
--- a/lib/Test/t/skip.t
+++ b/lib/Test/t/skip.t
@@ -1,9 +1,11 @@
# -*-perl-*-
use strict;
-use Test qw($TESTOUT $ntest plan ok skip); plan tests => 6;
+use Test qw($TESTOUT $TESTERR $ntest plan ok skip);
+plan tests => 6;
open F, ">skips" or die "open skips: $!";
$TESTOUT = *F{IO};
+$TESTERR = *F{IO};
skip(1, 0); #should skip
@@ -15,6 +17,7 @@ skip('skipping stones is more fun', sub { $skipped = 0 });
close F;
$TESTOUT = *STDOUT{IO};
+$TESTERR = *STDERR{IO};
$ntest = 1;
open F, "skips" or die "open skips: $!";