]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
tests: fix false positive in failed test check for cmdline_wrap.at.
authorGary V. Vaughan <gary@gnu.org>
Tue, 4 Nov 2014 18:05:42 +0000 (18:05 +0000)
committerGary V. Vaughan <gary@gnu.org>
Tue, 4 Nov 2014 18:05:42 +0000 (18:05 +0000)
* 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 <gary@gnu.org>
tests/cmdline_wrap.at

index c44e1d0dd69f36efc822e4f59fee7958e6e6b6fc..2ee7b434781c6f2df70119c66ae99196840e9824 100644 (file)
@@ -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])])