File: old_envvars.t

package info (click to toggle)
libdbix-class-perl 0.082844-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,320 kB
  • sloc: perl: 27,215; sql: 322; sh: 29; makefile: 16
file content (28 lines) | stat: -rw-r--r-- 523 bytes parent folder | download | duplicates (6)
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
use warnings;
use strict;

use Test::More;

my @defined = grep { $ENV{$_} } qw/
  DATA_DUMPER_TEST
  DBICTEST_STORAGE_STRESS
  DBICTEST_FORK_STRESS
  DBICTEST_THREAD_STRESS
/;

$SIG{ALRM} = sub { die "\n\nENVCHECK prompt timeout\n\n\n" };
if (@defined) {
  diag join "\n",
    'The following ENV variables used to control the test suite, '
   .'but no longer do so, please remove them from your environment',
    @defined,
    '',
    '(press Enter to continue)',
  ;
  alarm(10);
  <>;
  alarm(0);
}
ok(1);

done_testing;