#! /bin/sh
-# Copyright (C) 2010, 2011 Free Software Foundation, Inc.
+# Copyright (C) 2010, 2011, 2012 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
for test_name in $test_names_list; do
eval "test_string=\${instspc__$test_name}" \
- && test x"$test_string" != x \
|| fatal_ "invalid test name: '$test_name'"
+ if test x"$test_string" = x; then
+ if test x"$test_name" != xcarriageret; then
+ fatal_ "invalid test name: '$test_name'"
+ else
+ # MSYS version 1.0.17 still mishandles carriage returns; see
+ # automake bug#7849.
+ skip_ -r "carriage-return treated as null char" "$test_name in builddir"
+ skip_ -r "carriage-return treated as null char" "$test_name in destdir"
+ continue
+ fi
+ fi
+
# Skip the next checks if this system doesn't support the required
# characters in file names.
continue
}
+ case $test_string in
+ *:*)
+ # On MSYS 1.0.17, "mkdir ./a:" creates ./a, and "cd ./a:" takes you
+ # to a strange directory with pwd equal to "a". But only for
+ # interactive shells. Or something? In this script, "cd ./a:" fails
+ # on MSYS. Marvelous.
+ ( cd "./$test_string" ) || {
+ rmdir "./$test_string" || fatal_ "removing directory"
+ skip_ -r "cd failed" "$test_name in builddir"
+ skip_ -r "cd failed" "$test_name in destdir"
+ continue
+ }
+ ;;
+ esac
+
# Where are the "weird" characters going to be used, in $(builddir)
# or in $(DESTDIR)? They are always going to be used in $(prefix)
# though; should we maybe separate this into a dedicated check?