X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=tests%2Fextrac09.at;h=496c5fd9b9c8d219a9e4002440b83401439e3a6b;hb=d30babc23b4f25be970ada2e63a50220a3672281;hp=8241c30a149a5501bc728c86c1795f459280f6a9;hpb=ee168310ec4227174ace489bf5f81f8c2f91cde0;p=debian%2Ftar diff --git a/tests/extrac09.at b/tests/extrac09.at index 8241c30a..496c5fd9 100644 --- a/tests/extrac09.at +++ b/tests/extrac09.at @@ -1,14 +1,16 @@ # Process this file with autom4te to create testsuite. -*- Autotest -*- # Test suite for GNU tar. -# Copyright (C) 2010 Free Software Foundation, Inc. +# Copyright 2010, 2013-2014, 2016 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. @@ -16,10 +18,20 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# This checks for the --listed-incremental bug reported by J Chapman Flack at -# http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html - -AT_SETUP([no need to save dir with unreadable . and ..]) +# This attempts to cause xgetcwd() to fail, and then checks to see if +# such failure causes tar to abort even in a case where the results of +# the call aren't actually needed. +# +# (xgetcwd() may fail e.g. on Solaris 10 when "." or ".." are unreadable. +# On most systems xgetcwd() won't fail even in that situation, but +# on those systems this test will simply succeed without actually testing +# anything within tar.) +# +# http://lists.gnu.org/archive/html/bug-tar/2010-07/msg00045.html +# +# (See also 'listed03.at'.) + +AT_SETUP([extracting even when . and .. are unreadable]) AT_KEYWORDS([extract extrac09]) AT_TAR_CHECK([