diff options
author | Ludovic Courtès <ludo@gnu.org> | 2015-08-25 22:44:10 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-08-26 00:43:36 +0200 |
commit | fe32241ad5394c12fc70a31de005ec1b563bbb4e (patch) | |
tree | ef1dd48d743e28f0745eff11cfc4b70271efdcbd /tests/nar.scm | |
parent | 45fed6d32c288dbf5400ace42179256036c4c233 (diff) | |
download | patches-fe32241ad5394c12fc70a31de005ec1b563bbb4e.tar patches-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.scm | 2 |
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)) |