File: 41die.t

package info (click to toggle)
liblog-report-perl 1.40-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 568 kB
  • sloc: perl: 2,905; makefile: 8
file content (21 lines) | stat: -rw-r--r-- 334 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
#!/usr/bin/env perl
# Convert die into report

use warnings;
use strict;
use lib 't';

use POSIX;

eval { setlocale(LC_ALL, 'POSIX') };

$! = 3;
my $errno  = $!+0;
my $errstr = "$!";

#### Carp only works in package != main
use DieTests;

# we need a short stack trace
sub simple_wrapper() { DieTests::run_tests() }
simple_wrapper();