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:
parent
45fed6d32c
commit
fe32241ad5
|
@ -121,7 +121,7 @@
|
||||||
(lambda (name stat errno result)
|
(lambda (name stat errno result)
|
||||||
(pk 'error name stat errno)
|
(pk 'error name stat errno)
|
||||||
#f)
|
#f)
|
||||||
(> (stat:nlink (stat output)) 2)
|
#t ; result
|
||||||
input
|
input
|
||||||
lstat))
|
lstat))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue