X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Ftar;a=blobdiff_plain;f=tests%2Fremfiles02.at;h=c77afedf2bd5b52d5548178c232104282bc87b1a;hp=d137433bc7db364b1ee9d0c72fff74e7c197e59c;hb=45ccda119355a1087450039a250359c1d0de0d08;hpb=4dfcd6c054a5e9e1a371c822a3be90564dd9b690 diff --git a/tests/remfiles02.at b/tests/remfiles02.at index d137433..c77afed 100644 --- a/tests/remfiles02.at +++ b/tests/remfiles02.at @@ -1,22 +1,22 @@ # Process this file with autom4te to create testsuite. -*- Autotest -*- # Test suite for GNU tar. -# Copyright (C) 2009 Free Software Foundation, Inc. +# Copyright 2009, 2013-2014 Free Software Foundation, Inc. -# This program is free software; you can redistribute it and/or modify +# This file is part of GNU tar. + +# GNU tar is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3, or (at your option) -# any later version. +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. -# This program is distributed in the hope that it will be useful, +# GNU tar is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -# 02110-1301, USA. +# along with this program. If not, see . # Description: When called with --create --remove-files and a compression # options tar (v. <= 1.22.90) would remove files even if it had failed @@ -39,11 +39,14 @@ mkdir a genfile --file b mkdir c -tar -c -f a -z --remove-files b c - +tar -c -f a -z --remove-files b c 2>err +EC=$? +sed -n '/(child)/p' err >&2 +rm err find . | sort +exit $EC ], -[0], +[2], [. ./a ./b @@ -51,8 +54,6 @@ find . | sort ], [tar (child): a: Cannot open: Is a directory tar (child): Error is not recoverable: exiting now -tar: Child returned status 2 -tar: Error is not recoverable: exiting now ]) AT_CLEANUP