File: skip1.t

package info (click to toggle)
libtest-class-perl 0.35-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 476 kB
  • ctags: 102
  • sloc: perl: 1,668; makefile: 2
file content (26 lines) | stat: -rw-r--r-- 530 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/perl

use strict;
use warnings;
use base qw(Test::Class);
use Test::More;
use Test::Builder;
use Fcntl;
use IO::File;

my $io = IO::File->new_tmpfile or die "couldn't create tmp file ($!)\n";
my $Test = Test::Builder->new;
					
$Test->output($io);
$Test->failure_output($io);
Test::Class->SKIP_ALL("skipping");

END {
	seek $io, SEEK_SET, 0;
	print "1..1\n";
	my $output = <$io>;
	chomp($output);
	my $ok = $output =~ /^1..0 # Skip skipping$/i;
	print "not " unless $ok;
	print "ok 1 - SKIP_ALL called skip_all\n";
};