Test: catch if trash cannot be removed
commit8d14ac945403d6d4b1de9f9fd680247e831c0bfc
authorJunio C Hamano <gitster@pobox.com>
Wed, 19 Mar 2008 04:58:01 +0000 (18 21:58 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 19 Mar 2008 05:17:22 +0000 (18 22:17 -0700)
tree75db696c9b6cc0ba2e7f2b5cb3f84a517470c3f1
parent29dc13319883f97618de6f03e8ffc5dc810d8786
Test: catch if trash cannot be removed

When your test creates an unwritable directory that test framework cannot
clean out by "rm -fr trash", later tests cannot start in a fresh state
they expect to.  Detect this and error out early.

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