test: use test_must_be_empty F instead of test_cmp empty F
commited254710eee0a5fcde1057593d181d40b02922e1
authorRené Scharfe <l.s.r@web.de>
Wed, 27 Nov 2019 07:51:43 +0000 (27 08:51 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 Nov 2019 10:05:27 +0000 (27 19:05 +0900)
tree23299046b8f2dba950f869e839d39c4ab4de72bb
parent213dabf49dc53ae5808efbdebf0cd2bfc2c1bfa8
test: use test_must_be_empty F instead of test_cmp empty F

Use test_must_be_empty instead of comparing it to an empty file.  That's
more efficient, as the function only needs built-in meta-data only check
in the usual case, and provides nicer debug output otherwise.

Helped-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1011-read-tree-sparse-checkout.sh
t/t9010-svn-fe.sh