The following commit has been merged in the master branch:
commit 33a84d38568ef6de0c8becbe9fdea8ee5ad98a65
Author: Guillem Jover <[email protected]>
Date: Mon Mar 2 06:09:24 2009 +0200
u-a: Fix test suite to use t.tmp from builddir instead of srcdir
This fixes “make distcheck”, as t.tmp is a read/write directory it has
to be used under builddir, which in most cases happens to be the same as
srcdir.
diff --git a/ChangeLog b/ChangeLog
index eebd8af..3ad5363 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2009-03-02 Guillem Jover <[email protected]>
+ * scripts/t/900_update_alternatives.t: Do not use $srcdir for t.tmp,
+ it's actually located in builddir.
+
+2009-03-02 Guillem Jover <[email protected]>
+
* scripts/update-alternatives.pl (load): Print an actual error on open
instead of an empty string.
diff --git a/scripts/t/900_update_alternatives.t
b/scripts/t/900_update_alternatives.t
index e2a61bf..da4ba84 100644
--- a/scripts/t/900_update_alternatives.t
+++ b/scripts/t/900_update_alternatives.t
@@ -8,9 +8,9 @@ use strict;
use warnings;
my $srcdir = $ENV{srcdir} || '.';
-my $admindir = File::Spec->rel2abs("$srcdir/t.tmp/ua/admindir"),
-my $altdir = File::Spec->rel2abs("$srcdir/t.tmp/ua/alternatives");
-my $bindir = File::Spec->rel2abs("$srcdir/t.tmp/ua/bin");
+my $admindir = File::Spec->rel2abs("t.tmp/ua/admindir"),
+my $altdir = File::Spec->rel2abs("t.tmp/ua/alternatives");
+my $bindir = File::Spec->rel2abs("t.tmp/ua/bin");
# XXX: switch to version without .pl
my @ua = ("$srcdir/update-alternatives.pl", "--log", "/dev/null",
"--quiet", "--admindir", "$admindir", "--altdir", "$altdir");
@@ -56,7 +56,7 @@ plan tests => (4 * ($nb_slaves + 1) + 2) * 24 # number of
check_choices
+ 60; # rest
sub cleanup {
- system("rm -rf $srcdir/t.tmp/ua && mkdir -p $admindir && mkdir -p
$altdir");
+ system("rm -rf t.tmp/ua && mkdir -p $admindir && mkdir -p $altdir");
system("mkdir -p $bindir/more");
}
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]