tests: use 'test_must_be_empty' instead of '! test -s'
[gitweb.git] / t / t4010-diff-pathspec.sh
index 35b35a81c8ce38b3fe29f33412d2e7c9ff1bf68d..b95cc91a3f70f6621d3b3a32ef1325ab831f7f91 100755 (executable)
@@ -74,8 +74,7 @@ test_expect_success 'diff-tree pathspec' '
        tree2=$(git write-tree) &&
        echo "$tree2" &&
        git diff-tree -r --name-only $tree $tree2 -- pa path1/a >current &&
-       >expected &&
-       test_cmp expected current
+       test_must_be_empty current
 '
 
 test_expect_success 'diff-tree with wildcard shows dir also matches' '