tests: help-version: exit nonzero when $built_programs is empty
authorJim Meyering <meyering@redhat.com>
Fri, 13 Nov 2009 20:01:02 +0000 (21:01 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 14 Nov 2009 14:01:44 +0000 (15:01 +0100)
* tests/misc/help-version: Use "Exit 1", rather than "Exit $fail"
with fail defined to 0 when $built_programs is empty.

tests/misc/help-version

index 60283560224d7a89e1084b2813fa1e0bb90472d3..8f5cbdd288cdf9cddb2c20154eb652e77aeabfeb 100755 (executable)
@@ -45,7 +45,7 @@ expected_failure_status_vdir=2
 
 
 test "$built_programs" \
-  || { echo "$this_test: no programs built!?!" 1>&2; Exit $fail; }
+  || { echo "$this_test: no programs built!?!" 1>&2; Exit 1; }
 
 for lang in C fr da; do
   for i in $built_programs; do