Similar to v9.2-25-gd81094dc7, avoid an intermittent
false failure due to ZFS async allocatio, noticed on Solaris 11.

* tests/du/deref.sh: Count inodes which should be
independent of any allocation.
---
 tests/du/deref.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/du/deref.sh b/tests/du/deref.sh
index 0f1518285..4eb668cbc 100755
--- a/tests/du/deref.sh
+++ b/tests/du/deref.sh
@@ -39,9 +39,9 @@ returns_ 1 du -L dangle > /dev/null 2>&1 || fail=1
 # du -L used to mess up, either by counting the symlink's file system space
 # itself (-L should follow symlinks, not count their space)
 # or (briefly in July 2010) by omitting the entry for "a".
-du_L_output=$(du -L a) || fail=1
-du_lL_output=$(du -lL a) || fail=1
-du_x_output=$(du --exclude=dotdot a) || fail=1
+du_L_output=$(du --inodes -L a) || fail=1
+du_lL_output=$(du --inodes -lL a) || fail=1
+du_x_output=$(du --inodes --exclude=dotdot a) || fail=1
 test "X$du_L_output" = "X$du_x_output" || fail=1
 test "X$du_lL_output" = "X$du_x_output" || fail=1
 
-- 
2.56.0


Reply via email to