tests: don't rely on strerror text when testing rmdir failure
commit11b53902513c6d59f59594845ce53fe761f0894c
authorCharles Bailey <cbailey32@bloomberg.net>
Sat, 29 Mar 2014 15:39:01 +0000 (29 15:39 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 31 Mar 2014 18:53:24 +0000 (31 11:53 -0700)
treee7759545bbe659eb1fdc148b055da2a850277699
parent1f26ce615ab4b74cdd018e5d543138c2d188c3d8
tests: don't rely on strerror text when testing rmdir failure

AIX doesn't make a distiction between EEXIST and ENOTEMPTY; relying
on the strerror string for the rmdir failure is fragile. Just test
that the start of the string matches the Git controlled "failed to
rmdir..."  error. The exact text of the OS generated error string
isn't important to the test.

Signed-off-by: Charles Bailey <cbailey32@bloomberg.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3600-rm.sh
t/t7001-mv.sh