summaryrefslogtreecommitdiff
path: root/tests/extrac09.at
diff options
context:
space:
mode:
authorNathan Stratton Treadway <nathanst@ontko.com>2014-06-28 23:57:37 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2014-06-28 23:57:58 -0700
commitdc72f4d114e9b9eb895f500541c4e473febc4134 (patch)
tree235028a32098c1ec4a682ab8e211eda8bc49a54c /tests/extrac09.at
parent576e99a21c566598d7a701142e439cb283cac24f (diff)
downloadtar-dc72f4d114e9b9eb895f500541c4e473febc4134.tar.gz
tar: document xgetcwd test case better
* src/misc.c (normalize_filename): Add commentary for clarity. * tests/extrac09.at: Retitle test case and add comments for clarity.
Diffstat (limited to 'tests/extrac09.at')
-rw-r--r--tests/extrac09.at18
1 files changed, 14 insertions, 4 deletions
diff --git a/tests/extrac09.at b/tests/extrac09.at
index d9e2a4b1..b7218ef8 100644
--- a/tests/extrac09.at
+++ b/tests/extrac09.at
@@ -18,10 +18,20 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# 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([