diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2019-11-13 08:37:41 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-11-13 08:37:41 +0200 |
commit | b31afe7cf08d703f3d2010b66755637636ff6a63 (patch) | |
tree | 46650f738e2be7d58c0fe27e9fa0c8b1adf1a59e | |
parent | ea6f84dd40fa0791cc7593662c6c5d107a399568 (diff) | |
download | tar-b31afe7cf08d703f3d2010b66755637636ff6a63.tar.gz |
Testsuite fix.
* tests/remfiles10.at: Don't expect EINVAL when trying to remove
CWD.
-rw-r--r-- | tests/remfiles10.at | 10 |
1 files changed, 8 insertions, 2 deletions
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 |