File: exception.t

package info (click to toggle)
libfile-pushd-perl 1.016-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 212 kB
  • sloc: perl: 263; makefile: 7
file content (24 lines) | stat: -rw-r--r-- 421 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use strict;
use warnings;
use Test::More 0.96;
use File::pushd;

eval {
    my $dir = tempd;
    die("error\n");
};

my $err = $@;
is( $err, "error\n", "destroy did not clobber \$@\n" );

done_testing;
#
# This file is part of File-pushd
#
# This software is Copyright (c) 2018 by David A Golden.
#
# This is free software, licensed under:
#
#   The Apache License, Version 2.0, January 2004
#
# vim: ts=4 sts=4 sw=4 et: