File: test_more.t

package info (click to toggle)
libperl-prereqscanner-notquitelite-perl 0.9917-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 944 kB
  • sloc: perl: 5,239; makefile: 2
file content (67 lines) | stat: -rw-r--r-- 1,208 bytes parent folder | download | duplicates (3)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
use strict;
use warnings;
use FindBin;
use lib "$FindBin::Bin/../";
use Test::More;
use t::Util;

test('skip_all out of BEGIN', <<'END', {'Test::More' => 0, 'strict' => 0});
use Test::More;

plan skip_all => 'foo';

use strict;
END

test('skip_all inside BEGIN', <<'END', {'Test::More' => 0}, {}, {'strict' => 0});
use Test::More;

BEGIN {
  plan skip_all => 'foo';
}

use strict;
END

test('skip_all inside sub BEGIN', <<'END', {'Test::More' => 0}, {}, {'strict' => 0});
use Test::More;

sub BEGIN {
  plan skip_all => 'foo';
}

use strict;
END

test('skip_all inside BEGIN if', <<'END', {'Test::More' => 0}, {}, {'strict' => 0});
use Test::More;

sub BEGIN {
  plan skip_all => 'foo' if $^O eq 'MSWin32';
}

use strict;
END

test('"skip_all"', <<'END', {'Test::More' => 0}, {}, {'strict' => 0});
use Test::More;

sub BEGIN {
  plan 'skip_all' => 'foo' if $^O eq 'MSWin32';
}

use strict;
END

test('plan(skip_all => ...)', <<'END', {}, {}, {'strict' => 0, 'Test::More' => 0}); # INGY/perl5-0.21/t/release-pod-syntax.t
BEGIN {
  unless ($ENV{RELEASE_TESTING}) {
    require Test::More;
    Test::More::plan(skip_all => 'these tests are for release candidate testing');
  }
}

use strict;
END

done_testing;