summaryrefslogtreecommitdiff
path: root/tests/remfiles09b.at
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2015-11-11 13:01:45 +0200
committerSergey Poznyakoff <gray@gnu.org>2015-11-11 13:01:45 +0200
commite6fcc73efa7463fe20c30a20603d3a3f6abfd4e5 (patch)
tree4112f3def733d31ea127f7430f794a4cfef11dfb /tests/remfiles09b.at
parent6167c23e22236d7872295089ad4e197697fadd97 (diff)
downloadtar-e6fcc73efa7463fe20c30a20603d3a3f6abfd4e5.tar.gz
Work around unlinkat bug on FreeBSD and GNU/Hurd
* src/unlink.c (dunlink_insert): New function. (flush_deferred_unlinks): Skip cwds and nonempty directories at the first pass. If force is requested, run a second pass removing them. (queue_deferred_unlink): Make sure current working directory entries are sorted in descending order by the value of dir_idx. This makes sure they will be removed in right order, which works around unlinkat bug on FreeBSD and GNU/Hurd. * tests/remfiles08b.at: Remove expected failure. * tests/remfiles09b.at: Likewise.
Diffstat (limited to 'tests/remfiles09b.at')
-rw-r--r--tests/remfiles09b.at2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/remfiles09b.at b/tests/remfiles09b.at
index 45b8440c..31597df8 100644
--- a/tests/remfiles09b.at
+++ b/tests/remfiles09b.at
@@ -29,8 +29,6 @@
AT_SETUP([remove-files on full directory in -c/incr. mode])
AT_KEYWORDS([create incremental remove-files remfiles09 remfiles09b])
-AT_XFAIL_IF(true) # we expect to fail in tar 1.27
-
AT_TAR_CHECK([
mkdir foo
echo foo/file > foo/file