Sync bootstrap from Gnulib
[tar.git] / tests / extrac27.at
blob1992d1bba9f52a25032a8175f2d08e912a0571df
1 # Test suite for GNU tar.                             -*- autotest -*-
2 # Copyright 2024 Free Software Foundation, Inc.
4 # This file is part of GNU tar.
6 # GNU tar is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
11 # GNU tar is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
19 # Description: When called with --keep-newer-files, tar 1.35 issued
20 # spurious diagnostic message:
22 #   Unexpected inconsistency when making directory.
24 # during extraction of ".".
26 # References: https://savannah.gnu.org/bugs/?65838
28 AT_SETUP([extract current dir with --keep-newer-files])
29 AT_KEYWORDS([extract extrac27])
30 AT_TAR_CHECK([
31 mkdir dir
32 touch dir/file
33 tar cf a.tar -C dir .
35 mkdir ext
36 tar xv --keep-newer-files -f a.tar -C ext
38 [0],
39 [./
40 ./file
42 AT_CLEANUP