diff options
-rwxr-xr-x | tests/du.test | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/du.test b/tests/du.test index ae610256..d7e58b43 100755 --- a/tests/du.test +++ b/tests/du.test @@ -11,6 +11,14 @@ if [ "$(stat --format %C . 2>/dev/null)" != "?" ]; then exit fi +# darwin stores empty directories in the inode itself, making all the numbers +# in the tests below 0. (TODO this is not the right fix.) +if [ "$(uname)" == "Darwin" ]; then + echo "$SHOWSKIP: du (Darwin stores empty directories in inode)" + return 2>/dev/null + exit +fi + #testing "name" "command" "result" "infile" "stdin" # we only test with -k since getting POSIX version is variable @@ -37,4 +45,3 @@ testing "-LH does not follow unspecified symlinks" "du -ksLH du_test" "8\tdu_tes testing "-H follows specified symlinks" "du -ksH du_test/xyz" "8\tdu_test/xyz\n" "" "" rm -rf du_test du_2 - |