From: Jim Meyering Date: Sun, 15 Nov 2020 04:19:28 +0000 (-0800) Subject: tests: accommodate an $ac_aux_dir of "." or "./" X-Git-Tag: v1.16.3~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=103cf704b2b6cfd290a0c63f0d400b9ff08e1783;p=thirdparty%2Fautomake.git tests: accommodate an $ac_aux_dir of "." or "./" * 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. --- diff --git a/t/auxdir-pr15981.sh b/t/auxdir-pr15981.sh index 14e9879d3..6ade6ce3a 100644 --- a/t/auxdir-pr15981.sh +++ b/t/auxdir-pr15981.sh @@ -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