diff options
author | Jim Meyering <meyering@redhat.com> | 2008-04-25 10:59:47 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-04-27 21:31:33 +0200 |
commit | 816e56a3deff5d95c946b52622a60c17d6d74ee4 (patch) | |
tree | d8dd872194a8bde5e6c6b2187bf377d27637e3cc | |
parent | bbafdc3c8f97cc1df1b4cd0f17280ea5f5295cfa (diff) | |
download | coreutils-816e56a3deff5d95c946b52622a60c17d6d74ee4.tar.xz |
tests: ensure at least one failure when $built_programs is empty
Before, this test and others would pass with empty $built_programs.
* tests/misc/help-version: Fail if built_programs is empty.
-rwxr-xr-x | tests/misc/help-version | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/misc/help-version b/tests/misc/help-version index 6cbf13871..da900a56e 100755 --- a/tests/misc/help-version +++ b/tests/misc/help-version @@ -40,6 +40,9 @@ expected_failure_status_vdir=2 fail=0 +test "$built_programs" \ + || { echo "$this_test: no programs built!?!" 1>&2; (exit $fail); exit $fail; } + for lang in C fr da; do for i in $built_programs; do |