From fe32241ad5394c12fc70a31de005ec1b563bbb4e Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Tue, 25 Aug 2015 22:44:10 +0200 Subject: tests: Work around Btrfs handling of nlink for empty directories. Fixes . Reported by Leo Famulari . * 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 file changed, 1 insertion(+), 1 deletion(-) 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 @@ (define sibling (lambda (name stat errno result) (pk 'error name stat errno) #f) - (> (stat:nlink (stat output)) 2) + #t ; result input lstat)) -- cgit v1.2.3