aboutsummaryrefslogtreecommitdiff
path: root/tests/nar.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-08-25 22:44:10 +0200
committerLudovic Courtès <ludo@gnu.org>2015-08-26 00:43:36 +0200
commitfe32241ad5394c12fc70a31de005ec1b563bbb4e (patch)
treeef1dd48d743e28f0745eff11cfc4b70271efdcbd /tests/nar.scm
parent45fed6d32c288dbf5400ace42179256036c4c233 (diff)
downloadguix-fe32241ad5394c12fc70a31de005ec1b563bbb4e.tar
guix-fe32241ad5394c12fc70a31de005ec1b563bbb4e.tar.gz
tests: Work around Btrfs handling of nlink for empty directories.
Fixes <http://bugs.gnu.org/21280>. Reported by Leo Famulari <leo@famulari.name>. * tests/nar.scm (file-tree-equal?): Use #t as the initial result. Btrfs would set nlink to 1 instead of 2 for an empty directory, thereby leading 'file-tree-equal?' to return #f.
Diffstat (limited to 'tests/nar.scm')
-rw-r--r--tests/nar.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/nar.scm b/tests/nar.scm
index b8e50c7603..e24a638db9 100644
--- a/tests/nar.scm
+++ b/tests/nar.scm
@@ -121,7 +121,7 @@
(lambda (name stat errno result)
(pk 'error name stat errno)
#f)
- (> (stat:nlink (stat output)) 2)
+ #t ; result
input
lstat))