]> Dogcows Code - chaz/tar/blob - tests/remfiles06.at
Improve tar_getcwd
[chaz/tar] / tests / remfiles06.at
1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
2 # Test suite for GNU tar.
3 # Copyright 2013 Free Software Foundation, Inc.
4 #
5 # GNU tar is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # GNU tar is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 # Description: There was a leftover call to chdir in name_next_elt() in
19 # tar 1.26. After commit e3d28d84 this call would confuse the tar_getcwd
20 # function.
21 # Reported by: Nathan Stratton Treadway <nathanst@ontko.com>
22 # References: <20130924145657.GM32256@shire.ontko.com>,
23 # http://lists.gnu.org/archive/html/bug-tar/2013-09/msg00045.html
24
25 AT_SETUP([incremental with two -C])
26 AT_KEYWORDS([incremental create remove-files remfiles06])
27
28 AT_TAR_CHECK([
29 AT_SORT_PREREQ
30 mkdir tartest
31 cd tartest
32 mkdir foo
33 echo foo/file > foo/file
34 mkdir bar
35 echo bar/file > bar/file
36 decho A
37 find|sort
38
39 decho B
40 tar -cvf ../foo.tar --remove-files -C foo file -C ../bar file
41
42 decho C
43 find|sort
44 ],
45 [0],
46 [A
47 .
48 ./bar
49 ./bar/file
50 ./foo
51 ./foo/file
52 B
53 file
54 file
55 C
56 .
57 ./bar
58 ./foo
59 ],
60 [A
61 B
62 C
63 ],[],[],[gnu])
64
65 AT_CLEANUP
This page took 0.037022 seconds and 4 git commands to generate.