]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: extra-portability.sh: fix post-merge spurious failure
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 12 Jan 2013 13:59:49 +0000 (14:59 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 12 Jan 2013 13:59:49 +0000 (14:59 +0100)
* t/extra-portability.sh: Adjust to reflect the fact that Automake-NG
supports non-POSIX make variable names like 'foo--bar'.  Instead, use
the fact that the 'aux' directory name is diagnosed as being reserved
on Windows.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/extra-portability.sh

index 1ea23ad7562864b4b694151daeb4b4f6b1bca72d..a2df3f3e6d530380344063cbadc467a97337a967 100755 (executable)
@@ -62,31 +62,33 @@ $AUTOMAKE -Wall -Wno-portability
 # Now, a setup where also a "simple" portability warning is present.
 #
 
-echo 'var = $(foo--bar)' >> Makefile.am
+echo 'SUBDIRS = aux' >> Makefile.am
 
 # Enabling extra-portability enables portability as well ...
 AUTOMAKE_fails -Wextra-portability
-grep 'foo--bar' stderr
+grep "'aux'.*reserved on W32" stderr
 grep 'requires.*AM_PROG_AR' stderr
 # ... even if it had been previously disabled.
 AUTOMAKE_fails -Wno-portability -Wextra-portability
-grep 'foo--bar' stderr
+grep "'aux'.*reserved on W32" stderr
 grep 'requires.*AM_PROG_AR' stderr
 
 # Disabling extra-portability leaves portability intact (1).
 AUTOMAKE_fails -Wportability -Wno-extra-portability
-grep 'foo--bar' stderr
+grep "'aux'.*reserved on W32" stderr
 grep 'requires.*AM_PROG_AR' stderr && exit 1
 # Disabling extra-portability leaves portability intact (2).
 AUTOMAKE_fails -Wall -Wno-extra-portability
-grep 'foo--bar' stderr
+grep "'aux'.*reserved on W32" stderr
 grep 'requires.*AM_PROG_AR' stderr && exit 1
 
 # Enabling portability does not enable extra-portability.
 AUTOMAKE_fails -Wportability
-grep 'foo--bar' stderr
+grep "'aux'.*reserved on W32" stderr
 grep 'requires.*AM_PROG_AR' stderr && exit 1
 
+mkdir aux || skip_ "couldn't create directory named 'aux'"
+
 # Disabling portability disables extra-portability.
 $AUTOMAKE -Wno-portability
 $AUTOMAKE -Wextra-portability -Wno-portability