[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: tests: Work around Btrfs handling of nlink for empty directories.
From: |
Ludovic Courtès |
Subject: |
01/02: tests: Work around Btrfs handling of nlink for empty directories. |
Date: |
Tue, 25 Aug 2015 22:43:51 +0000 |
civodul pushed a commit to branch master
in repository guix.
commit fe32241ad5394c12fc70a31de005ec1b563bbb4e
Author: Ludovic Courtès <address@hidden>
Date: Tue Aug 25 22:44:10 2015 +0200
tests: Work around Btrfs handling of nlink for empty directories.
Fixes <http://bugs.gnu.org/21280>.
Reported by Leo Famulari <address@hidden>.
* 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.
---
tests/nar.scm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/nar.scm b/tests/nar.scm
index b8e50c7..e24a638 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))