chiark / gitweb /
Make warnings fatal in tstunt/dpkg-parsechangelog (directly).
[dgit.git] / tests / tstunt / dpkg-parsechangelog
index c45b12465f462721bec1245d6729b888359afa5d..f1e75a88fa14320ae047fbba03f8e83f8fa78769 100755 (executable)
@@ -14,6 +14,8 @@
 # sys     0m0.012s
 # $
 
 # sys     0m0.012s
 # $
 
+$SIG{__WARN__} = sub { die $_[0]; }; # no use of system, so we avoid #793471
+
 my $infile = "debian/changelog";
 
 if (@ARGV && $ARGV[0] =~ s/^-l//) {
 my $infile = "debian/changelog";
 
 if (@ARGV && $ARGV[0] =~ s/^-l//) {