diff --git a/t/t2200-add-update.sh b/t/t2200-add-update.sh
index 5a8d52f2ff5ecfea8a1d4f9d39a2ed4a08c822e0..2ad2819a345af53ff6ab0b7c28fa313f1a0a5956 100755 (executable)
--- a/t/t2200-add-update.sh
+++ b/t/t2200-add-update.sh
'
-test_expect_success 'replace a file with a symlink' '
+test_expect_success SYMLINKS 'replace a file with a symlink' '
rm foo &&
ln -s top foo &&
'
+test_expect_success '"add -u non-existent" should fail' '
+ test_must_fail git add -u non-existent &&
+ ! (git ls-files | grep "non-existent")
+'
+
test_done