summaryrefslogtreecommitdiff
path: root/t/t3600-rm.sh
diff options
context:
space:
mode:
authorLibravatar Charles Bailey <cbailey32@bloomberg.net>2014-03-29 15:39:01 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-03-31 11:53:24 -0700
commit11b53902513c6d59f59594845ce53fe761f0894c (patch)
treee7759545bbe659eb1fdc148b055da2a850277699 /t/t3600-rm.sh
parentdir.c: make git_fnmatch() not inline (diff)
downloadtgif-11b53902513c6d59f59594845ce53fe761f0894c.tar.xz
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>
Diffstat (limited to 't/t3600-rm.sh')
-rwxr-xr-xt/t3600-rm.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/t/t3600-rm.sh b/t/t3600-rm.sh
index 3d305814b9..e00d7d2b61 100755
--- a/t/t3600-rm.sh
+++ b/t/t3600-rm.sh
@@ -711,8 +711,7 @@ test_expect_success 'checking out a commit after submodule removal needs manual
git submodule update &&
git checkout -q HEAD^ 2>actual &&
git checkout -q master 2>actual &&
- echo "warning: unable to rmdir submod: Directory not empty" >expected &&
- test_i18ncmp expected actual &&
+ test_i18ngrep "^warning: unable to rmdir submod:" actual &&
git status -s submod >actual &&
echo "?? submod/" >expected &&
test_cmp expected actual &&