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.
This commit is contained in:
Ludovic Courtès 2015-08-25 22:44:10 +02:00
parent 45fed6d32c
commit fe32241ad5

View file

@ -121,7 +121,7 @@ (define sibling
(lambda (name stat errno result)
(pk 'error name stat errno)
#f)
(> (stat:nlink (stat output)) 2)
#t ; result
input
lstat))