From 8d6b55e65c5449d50880fc2d100099bffcd8bc6e Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Tue, 4 Nov 2014 18:05:42 +0000 Subject: [PATCH] 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 --- tests/cmdline_wrap.at | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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])]) -- 2.47.3