From: Sergey Poznyakoff Date: Wed, 13 Nov 2019 06:37:41 +0000 (+0200) Subject: Testsuite fix. X-Git-Tag: release_1_33~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b31afe7cf08d703f3d2010b66755637636ff6a63;p=thirdparty%2Ftar.git Testsuite fix. * tests/remfiles10.at: Don't expect EINVAL when trying to remove CWD. --- diff --git a/tests/remfiles10.at b/tests/remfiles10.at index 39841071..b4333645 100644 --- a/tests/remfiles10.at +++ b/tests/remfiles10.at @@ -37,10 +37,16 @@ exit $tar_status B foo ], +[stderr],[],[],[gnu]) + +# Check standard error produced by the above command. Exact errno reported +# when trying to remove CWD may differ, so it is stripped off. +AT_CHECK([sed '2s/:[[^:]]*$//' stderr], +[0], [A -tar: .: Cannot rmdir: Invalid argument +tar: .: Cannot rmdir tar: Exiting with failure status due to previous errors B -],[],[],[gnu]) +]) AT_CLEANUP