File: 06-skip-all.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 (12 lines) | stat: -rw-r--r-- 237 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
use strict;
use warnings;

use Test::More;
use Test::Warnings ':all';

my $module = 'Does::Not::Exist::'.substr(rand, 2);
eval "use $module";
plan skip_all => 'Need '.$module.' to continue!' if $@;

fail('we should not ever get here');