summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]t/maintscript.t (renamed from t/maintscript)5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/maintscript b/t/maintscript.t
index a07ae3e4..e15daea3 100644..100755
--- a/t/maintscript
+++ b/t/maintscript.t
@@ -1,4 +1,6 @@
#!/usr/bin/perl
+use strict;
+use warnings;
use Test;
plan(tests => 8);
@@ -10,7 +12,8 @@ rm_conffile /etc/1
mv_conffile /etc/2 /etc/3 1.0-1
EOF
close OUT;
-system("cd t/tmp && DH_COMPAT=7 fakeroot ../../dh_installdeb");
+system("echo 10 >> t/tmp/debian/compat");
+system("cd t/tmp && fakeroot ../../dh_installdeb");
for my $script (qw{postinst preinst prerm postrm}) {
my @output=`cat t/tmp/debian/debhelper.$script.debhelper`;
ok(grep { m{^dpkg-maintscript-helper rm_conffile /etc/1 -- "\$\@"$} } @output);