]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Work around cygwin bug.
authorEric Blake <ebb9@byu.net>
Tue, 4 Mar 2008 22:02:22 +0000 (15:02 -0700)
committerEric Blake <ebb9@byu.net>
Tue, 4 Mar 2008 22:05:46 +0000 (15:05 -0700)
* tests/atlocal.in (unsupported_fs_chars): Avoid cygwin bug where
"touch 't\'" creates regular file 't'.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
tests/atlocal.in

index d4e3b03cb779ce02045b28b7137ff5c39fdd1ea6..8506a4356f2e3af60649a05539b84c4c7cc38404 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-03-04  Eric Blake  <ebb9@byu.net>
 
+       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.
index bc7a914b002097baa7c249221ef18659f65665c4..5e874107800aab04e923790298b27c53c956632e 100644 (file)
@@ -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