test-lib: add test_dir_is_empty()
commit0be7d9b73d21443e216454564dd4df8d2a227789
authorJens Lehmann <Jens.Lehmann@web.de>
Thu, 19 Jun 2014 20:12:23 +0000 (19 22:12 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Jun 2014 17:20:42 +0000 (20 10:20 -0700)
treec6d40d9339f5730593d72ee69768665ff693f439
parentcb682f8cfe63ecd0da08a526f404d295e51e3ab1
test-lib: add test_dir_is_empty()

For the upcoming submodule test framework we often need to assert that an
empty directory exists in the work tree. Add the test_dir_is_empty()
function which asserts that the given argument is an empty directory.

Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib-functions.sh