]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: accommodate an $ac_aux_dir of "." or "./"
authorJim Meyering <meyering@fb.com>
Sun, 15 Nov 2020 04:19:28 +0000 (20:19 -0800)
committerJim Meyering <meyering@fb.com>
Sun, 15 Nov 2020 04:19:28 +0000 (20:19 -0800)
* t/auxdir-pr15981.sh: This test would fail when run with
autoconf-2.69d because $ac_aux_dir would be "./" rather than
the expected ".".  Accept both.

t/auxdir-pr15981.sh

index 14e9879d3a753cfc36ec3953c850574c06da7aef..6ade6ce3a35a2170e7926134a7d645dcb4f6b202 100644 (file)
@@ -24,7 +24,7 @@ AC_INIT([test], [0.0])
 AM_AUX_DIR_EXPAND
 printf '%s\n' "ac_aux_dir: '$ac_aux_dir'"
 printf '%s\n' "am_aux_dir: '$am_aux_dir'"
-test "$ac_aux_dir" = . || AS_EXIT([1])
+test "${ac_aux_dir%/}" = . || AS_EXIT([1])
 test "$am_aux_dir" = "`pwd`" || AS_EXIT([1])
 AS_EXIT([0])
 END