]> git.ipfire.org Git - thirdparty/git.git/commit
t0003: use test_must_be_empty()
authorDenton Liu <liu.denton@gmail.com>
Fri, 20 Dec 2019 18:15:51 +0000 (10:15 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Dec 2019 19:30:44 +0000 (11:30 -0800)
commit99c049bc4c029471af5efcbd1a4ca1fd4a45b923
treead34af860f0d7d2c7acfec2bbbf24f25096c24c4
parent3738439c7779acf2dafadbbc488bb222c94a2b12
t0003: use test_must_be_empty()

In several places, we used `test_line_count = 0` to check for an empty
file. Although this is correct, it's overkill. Use test_must_be_empty()
instead because it's more suited for this purpose.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0003-attributes.sh