From f4d63be3ed3b071735b33044b9139748dfd5130f Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Thu, 20 Feb 2003 12:28:37 +0000 Subject: [PATCH] * tests/defs.in: Handle required=ro-dir. * tests/destdir.test: Use this. --- ChangeLog | 5 +++++ tests/defs.in | 11 +++++++++++ tests/destdir.test | 6 +++--- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8092afade..61cf6b3f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-02-20 Alexandre Duret-Lutz + + * tests/defs.in: Handle required=ro-dir. + * tests/destdir.test: Use this. + 2003-02-19 Richard Dawe * lib/am/distdir.am (distcheck): Strip any leading DOS drive diff --git a/tests/defs.in b/tests/defs.in index 08e9c788b..b82f4eb9d 100644 --- a/tests/defs.in +++ b/tests/defs.in @@ -122,6 +122,17 @@ then 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. diff --git a/tests/destdir.test b/tests/destdir.test index ee943731c..59e23604c 100755 --- a/tests/destdir.test +++ b/tests/destdir.test @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 2002 Free Software Foundation, Inc. +# Copyright (C) 2002, 2003 Free Software Foundation, Inc. # # This file is part of GNU Automake. # @@ -21,9 +21,9 @@ # 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 -- 2.47.2