diff options
author | Gary V. Vaughan <gary@gnu.org> | 2014-11-04 18:05:42 +0000 |
---|---|---|
committer | Gary V. Vaughan <gary@gnu.org> | 2014-11-04 18:05:42 +0000 |
commit | 8d6b55e65c5449d50880fc2d100099bffcd8bc6e (patch) | |
tree | a0534337e5298e81c95c5c35b5cc9c67ce433c72 /tests | |
parent | b5324008d12ba59df83be6100e6f0359eeb0f75d (diff) | |
download | libtool-8d6b55e65c5449d50880fc2d100099bffcd8bc6e.tar.gz |
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 <gary@gnu.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cmdline_wrap.at | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/cmdline_wrap.at b/tests/cmdline_wrap.at index c44e1d0d..2ee7b434 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])]) |