1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
3 # Test suite for GNU tar.
4 # Copyright 2009, 2013-2014 Free Software Foundation, Inc.
6 # This file is part of GNU tar.
8 # GNU tar is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or
11 # (at your option) any later version.
13 # GNU tar is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21 # Description: When called with --create --remove-files and a compression
22 # options tar (v. <= 1.22.90) would remove files even if it had failed
23 # to store them in the archive.
25 # References: <77cb99c00910020940k6ce15da4wb564d2418ec52cfb@mail.gmail.com>
26 # http://lists.gnu.org/archive/html/bug-tar/2009-10/msg00005.html
28 AT_SETUP([remove-files with compression: grand-child])
29 AT_KEYWORDS([create remove-files remfiles02 gzip])
42 tar -c -f a -z --remove-files b c 2>err
44 sed -n '/(child)/p' err >&2
55 [tar (child): a: Cannot open: Is a directory
56 tar (child): Error is not recoverable: exiting now