diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-08-27 21:33:43 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-27 21:33:43 (GMT) |
commit | 986c5181071ce3aac42d0aaeb7bd691a1a0bdf4a (patch) | |
tree | 4ef3f9805cfdbf3b4496cb720a94c138df034204 /t/t3004-ls-files-basic.sh | |
parent | fc0df933c8fa09603a9e9798085ee07ca1a83f65 (diff) | |
parent | 1c5e94f459a0b7c23ef7e855441a65afdc4effab (diff) | |
download | git-986c5181071ce3aac42d0aaeb7bd691a1a0bdf4a.zip git-986c5181071ce3aac42d0aaeb7bd691a1a0bdf4a.tar.gz git-986c5181071ce3aac42d0aaeb7bd691a1a0bdf4a.tar.bz2 |
Merge branch 'sg/test-must-be-empty'
Test fixes.
* sg/test-must-be-empty:
tests: use 'test_must_be_empty' instead of 'test_cmp <empty> <out>'
tests: use 'test_must_be_empty' instead of 'test_cmp /dev/null <out>'
tests: use 'test_must_be_empty' instead of 'test ! -s'
tests: use 'test_must_be_empty' instead of '! test -s'
Diffstat (limited to 't/t3004-ls-files-basic.sh')
-rwxr-xr-x | t/t3004-ls-files-basic.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/t/t3004-ls-files-basic.sh b/t/t3004-ls-files-basic.sh index 9c7adbd..9fd5a1f 100755 --- a/t/t3004-ls-files-basic.sh +++ b/t/t3004-ls-files-basic.sh @@ -8,16 +8,14 @@ command-line arguments. . ./test-lib.sh ->empty - test_expect_success 'ls-files in empty repository' ' git ls-files >actual && - test_cmp empty actual + test_must_be_empty actual ' test_expect_success 'ls-files with nonexistent path' ' git ls-files doesnotexist >actual && - test_cmp empty actual + test_must_be_empty actual ' test_expect_success 'ls-files with nonsense option' ' |