[PATCH 0/1] t/test-lib: make `test_dir_is_empty` more robust
- From
William Chargin <wchargin@gmail.com>
- Date
- Aug 5, 2018, 02:20 UTC
- Message-ID
- <20180805022002.28907-1-wchargin@gmail.com>
While the `test_dir_is_empty` function appears correct in most normal use cases, it can fail when filenames contain newlines. I originally wrote this patch for the standalone Sharness library, but that library advises that such patches be sent to the Git mailing list first.
William Chargin (1): t/test-lib: make `test_dir_is_empty` more robust
t/t0000-basic.sh | 29 +++++++++++++++++++++++++++++ t/test-lib-functions.sh | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-)
-- 2.18.0.548.g79b975644