[debhelper-devel] [debhelper] 01/03: Test::DH: Ensure we do not call an undefined error sub

Niels Thykier nthykier at moszumanska.debian.org
Sun Oct 22 21:24:33 UTC 2017


This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository debhelper.

commit 0f0d113f198089a4112172277be94e68c4114c27
Author: Niels Thykier <niels at thykier.net>
Date:   Sun Oct 22 21:14:39 2017 +0000

    Test::DH: Ensure we do not call an undefined error sub
---
 t/Test/DH.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/t/Test/DH.pm b/t/Test/DH.pm
index 5affc88..b9275cb 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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git




More information about the debhelper-devel mailing list