From 53a1ce8ff8fd7bbba240ec07784903a57526f2c8 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 4 Mar 2008 15:02:22 -0700 Subject: [PATCH] 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 --- ChangeLog | 4 ++++ tests/atlocal.in | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) 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 -- 2.47.2