diff options
author | Guillem Jover <guillem@debian.org> | 2015-04-21 05:34:06 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2015-04-21 06:55:59 +0200 |
commit | 16fd072481648412b413ecfa0b4efdb867dab10c (patch) | |
tree | d3c628ca5ba829866666e79992e879f6c3626fe2 /src/t | |
parent | 5843f277d94c8dc100440525e9d5b9c98836d58f (diff) | |
download | dpkg-16fd072481648412b413ecfa0b4efdb867dab10c.tar.gz |
src/t: Fix dpkg-divert.t to work on BSD userland
On FreeBSD «rm -rf» cannot traverse a directory with mode 000, so we
need to remove it beforehand.
Diffstat (limited to 'src/t')
-rw-r--r-- | src/t/dpkg_divert.t | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/t/dpkg_divert.t b/src/t/dpkg_divert.t index b83576680..6c22c1bdb 100644 --- a/src/t/dpkg_divert.t +++ b/src/t/dpkg_divert.t @@ -43,6 +43,8 @@ if (! -x "@dd") { plan tests => 257; sub cleanup { + # On FreeBSD «rm -rf» cannot traverse a directory with mode 000. + system("test -d $testdir/nadir && rmdir $testdir/nadir"); system("rm -rf $tmpdir && mkdir -p $testdir"); system("mkdir -p $admindir/updates"); system("rm -f $admindir/status && touch $admindir/status"); |