summaryrefslogtreecommitdiff
path: root/t/Test
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2017-10-22 21:14:39 +0000
committerNiels Thykier <niels@thykier.net>2017-10-22 21:14:39 +0000
commit0f0d113f198089a4112172277be94e68c4114c27 (patch)
treece059228c3387e898983f43a328f7cea926a9e31 /t/Test
parent78275a7e40db9f457de9fcf415ca7dd30909bd58 (diff)
downloaddebhelper-0f0d113f198089a4112172277be94e68c4114c27.tar.gz
Test::DH: Ensure we do not call an undefined error sub
Diffstat (limited to 't/Test')
-rw-r--r--t/Test/DH.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/Test/DH.pm b/t/Test/DH.pm
index 5affc889..b9275cbe 100644
--- a/t/Test/DH.pm
+++ b/t/Test/DH.pm
@@ -16,7 +16,7 @@ use File::Basename qw(dirname);
our $ROOT_DIR;
BEGIN {
- my $res = realpath(__FILE__) or error('Cannot resolve ' . __FILE__ . ": $!");
+ my $res = realpath(__FILE__) or die('Cannot resolve ' . __FILE__ . ": $!");
$ROOT_DIR = dirname(dirname(dirname($res)));
};
@@ -37,6 +37,7 @@ our @EXPORT = qw(
each_compat_up_to_and_incl_subtest each_compat_subtest
each_compat_from_and_above_subtest run_dh_tool
uid_0_test_is_ok create_empty_file readlines
+ error
);
our ($TEST_DH_COMPAT, $ROOT_OK, $ROOT_CMD);