File: 08-use-if.t

package info (click to toggle)
libtest-warnings-perl 0.016-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 352 kB
  • ctags: 8
  • sloc: perl: 339; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 292 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
use strict;
use warnings FATAL => 'all';

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';

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

done_testing;