File: 05sigdie.t

package info (click to toggle)
libversion-perl 1%3A0.9900-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 516 kB
  • sloc: perl: 1,852; ansic: 834; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 438 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /usr/local/perl -w
# Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl test.pl'

#########################

use Test::More tests => 1;

BEGIN {
    $SIG{__DIE__}   = sub {
	warn @_;
	BAIL_OUT( q[Couldn't use module; can't continue.] );
    };
}


BEGIN {
    use version 0.99;
}

pass "Didn't get caught by the wrong DIE handler, which is a good thing";