]> git.ipfire.org Git - thirdparty/git.git/commit
t6416, t6422: fix incorrect untracked file count
authorElijah Newren <newren@gmail.com>
Mon, 10 Aug 2020 22:29:12 +0000 (22:29 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Aug 2020 22:59:00 +0000 (15:59 -0700)
commit3df4e3bb092ec007d1967038baaf9fc39acaff8d
tree3327b2d752eaf60f8077bfa7f829299da62cbd2f
parent3b6eb15d2b419c26bf1490b932c45913a1acb601
t6416, t6422: fix incorrect untracked file count

Apparently I don't know how to count untracked files, and since the
tests in question were marked as test_expect_failure, no one ever
noticed it until now.  Correct the count, as these tests clearly create
three untracked files ('out', 'err', and 'file_count').

(I believe this problem arose because earlier incarnations counted lines
via a pipe to 'wc -l'.  Reviewers asked that it be replaced by writing
the output to a file and using test_line_count, but when the temporary
output was added to a separate file, the count of untracked files should
have increased.)

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6416-recursive-corner-cases.sh
t/t6422-merge-rename-corner-cases.sh