tests: ensure at least one failure when $built_programs is empty
authorJim Meyering <meyering@redhat.com>
Fri, 25 Apr 2008 08:59:47 +0000 (10:59 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 27 Apr 2008 19:31:33 +0000 (21:31 +0200)
Before, this test and others would pass with empty $built_programs.
* tests/misc/help-version: Fail if built_programs is empty.

tests/misc/help-version

index 6cbf138..da900a5 100755 (executable)
@@ -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