File: 08-use-if.t

package info (click to toggle)
libtest-warnings-perl 0.038-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 472 kB
  • sloc: perl: 375; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 359 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use strict;
use warnings;

use Test::More 0.88;

pass 'here is a passing test, to keep plan happy';

BEGIN { $ENV{FOO} = $ENV{BAR} = 0 };
use if $ENV{FOO} || $ENV{BAR}, 'Test::Warnings';

use if "$]" >= '5.008', lib => 't/lib';
use if "$]" >= '5.008', 'SilenceStderr';

warn 'this is not a fatal warning, because Test::Warnings is not loaded';

done_testing;