From: Eric Blake Date: Tue, 4 Mar 2008 22:02:22 +0000 (-0700) Subject: Work around cygwin bug. X-Git-Tag: v2.62~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53a1ce8ff8fd7bbba240ec07784903a57526f2c8;p=thirdparty%2Fautoconf.git Work around cygwin bug. * tests/atlocal.in (unsupported_fs_chars): Avoid cygwin bug where "touch 't\'" creates regular file 't'. Signed-off-by: Eric Blake --- diff --git a/ChangeLog b/ChangeLog index d4e3b03c..8506a435 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-03-04 Eric Blake + Work around cygwin bug. + * tests/atlocal.in (unsupported_fs_chars): Avoid cygwin bug where + "touch 't\'" creates regular file 't'. + Ignore tests that require read-only directories under root. * tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Skip no-write portion if user has root-like privileges. diff --git a/tests/atlocal.in b/tests/atlocal.in index bc7a914b..5e874107 100644 --- a/tests/atlocal.in +++ b/tests/atlocal.in @@ -2,7 +2,7 @@ # @configure_input@ # Configurable variable values for Autoconf test suite. -# Copyright (C) 2000, 2001, 2005 Free Software Foundation, Inc. +# Copyright (C) 2000, 2001, 2005, 2008 Free Software Foundation, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -30,8 +30,8 @@ ac_cv_sh_n_works='@ac_cv_sh_n_works@' unsupported_fs_chars= for c in '\\' '"' '<' '>' '*' '?' '|' do - touch "t$c" 2>/dev/null - test -f "t$c" && rm -f "t$c" && continue + touch "t${c}t" 2>/dev/null + test -f "t${c}t" && rm -f "t${c}t" && continue # $c cannot be used in a file name. unsupported_fs_chars=$unsupported_fs_chars$c done