* tests/destdir.test: Use this.
+2003-02-20 Alexandre Duret-Lutz <adl@gnu.org>
+
+ * tests/defs.in: Handle required=ro-dir.
+ * tests/destdir.test: Use this.
+
2003-02-19 Richard Dawe <rich@phekda.freeserve.co.uk>
* lib/am/distdir.am (distcheck): Strip any leading DOS drive
echo "$me: running python -V"
( python -V ) || exit 77
;;
+ ro-dir)
+ # Skip this test case if read-only directories aren't supported
+ # (e.g., under DOS.)
+ ro_dir_temp=ro_dir.$$
+ mkdir $ro_dir_temp || exit 1
+ chmod a-w $ro_dir_temp || exit 1
+ (: > $ro_dir_temp/probe) >/dev/null 2>/dev/null
+ create_status=$?
+ rm -rf $ro_dir_temp
+ test $create_status = 0 && exit 77
+ ;;
tex)
# No all versions of Tex support `--version', so we use
# a configure check.
#! /bin/sh
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
# Make sure that `make distcheck' can find some $(DESTDIR) omissions.
# PR/186.
-# The feature we test here relies on read-only files.
+# The feature we test here relies on read-only directories.
# It will only work for non-root users.
-required='non-root'
+required='ro-dir'
. ./defs || exit 1