automake-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[automake-commit] 02/04: tests: accommodate an $ac_aux_dir of "." or "./


From: Jim Meyering
Subject: [automake-commit] 02/04: tests: accommodate an $ac_aux_dir of "." or "./"
Date: Sun, 15 Nov 2020 12:46:30 -0500

meyering pushed a commit to branch master
in repository automake.

View the commit online:
https://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=103cf704b2b6cfd290a0c63f0d400b9ff08e1783

commit 103cf704b2b6cfd290a0c63f0d400b9ff08e1783
Author: Jim Meyering <meyering@fb.com>
AuthorDate: Sat Nov 14 20:19:28 2020 -0800

    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.
---
 t/auxdir-pr15981.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/auxdir-pr15981.sh b/t/auxdir-pr15981.sh
index 14e9879..6ade6ce 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]