From: Gary V. Vaughan Date: Tue, 4 Nov 2014 18:05:42 +0000 (+0000) Subject: tests: fix false positive in failed test check for cmdline_wrap.at. X-Git-Tag: v2.4.4~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8d6b55e65c5449d50880fc2d100099bffcd8bc6e;p=thirdparty%2Flibtool.git tests: fix false positive in failed test check for cmdline_wrap.at. * tests/cmdline_wrap.at (fail_list): non-matching globs return as a plain unexpanded string, so we also need to test for file existence before expanding into fail_list. Signed-off-by: Gary V. Vaughan --- diff --git a/tests/cmdline_wrap.at b/tests/cmdline_wrap.at index c44e1d0dd..2ee7b4347 100644 --- a/tests/cmdline_wrap.at +++ b/tests/cmdline_wrap.at @@ -28,7 +28,8 @@ AT_SETUP([Run tests with low max_cmd_len]) AT_KEYWORDS([recursive expensive]) dnl If we already have failures, then reruns will fail too! -fail_list=`for f in ?/fail ??/fail ???/fail ????/fail; do echo $f; done` +fail_list=`for f in ?/fail ??/fail ???/fail ????/fail; do test -f $f && echo $f; done` +echo "DEBUG: fail_list='$fail_list'" AT_CHECK([test -z "$fail_list" || (exit 77)]) m4_ifdef([AT_CAPTURE_FILE], [AT_CAPTURE_FILE([testsuite.log])])