diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-07-25 16:30:09 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-07-25 17:56:42 +0100 |
commit | d6be829bf56e699d27d388026d4af7ab710ba328 (patch) | |
tree | a4eb3ec080271e145d99200a43a3f5d3271e41bc /dgit | |
parent | 9141753fb5096b41074684d5bdfbb0c6f69a0c1a (diff) |
Work around #793471 (madness with $SIG{__WARN__} and Perl's system builtin): move $SIG{} setting into setup_sigwarn in Dgit.pm, and check getppid.
We also need to fix up the expectation for an error message in one of
the tests, where the message changes as a side effect.
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -18,7 +18,9 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. use strict; -$SIG{__WARN__} = sub { die $_[0]; }; + +use Debian::Dgit; +setup_sigwarn(); use IO::Handle; use Data::Dumper; |