summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-04-25 10:59:47 +0200
committerJim Meyering <meyering@redhat.com>2008-04-27 21:31:33 +0200
commit816e56a3deff5d95c946b52622a60c17d6d74ee4 (patch)
treed8dd872194a8bde5e6c6b2187bf377d27637e3cc
parentbbafdc3c8f97cc1df1b4cd0f17280ea5f5295cfa (diff)
downloadcoreutils-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-xtests/misc/help-version3
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