Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
tests: use 'test_must_be_empty' instead of '! test -s'
[gitweb.git]
/
t
/
t2202-add-addremove.sh
diff --git
a/t/t2202-add-addremove.sh
b/t/t2202-add-addremove.sh
index 6a5a3166b1823e751dfe19a28bf54c147dd798b3..e84079d81fb75da12b8e3098c803b503247a3706 100755
(executable)
--- a/
t/t2202-add-addremove.sh
+++ b/
t/t2202-add-addremove.sh
@@
-48,8
+48,7
@@
test_expect_success 'Just "git add" is a no-op' '
>will-not-be-added &&
git add &&
git diff-index --name-status --cached HEAD >actual &&
- >expect &&
- test_cmp expect actual
+ test_must_be_empty actual
'
test_done