-# check that return status counts nonexistent components
-set +e
-mhparam path context nonexistent1 nonexistent2 nonexistent3 >/dev/null
-run_test "echo $?" 3
-set -e
-
-# And clips their numbers to avoid a misleading exit value.
-while read use want; do
- r=0
- mhparam `yes nonexistent | sed ${use}q` || r=$?
- run_test "echo $r" $want
-done <<\E
-119 119
-120 120
-121 120
-E
+# check that exit status notes nonexistent components
+start_test "exit status notes nonexistent components"
+for c in 'missing' 'path missing' 'missing path' 'missing missing'; do
+ set +e
+ mhparam $c >/dev/null
+ e=$?
+ set -e
+ run_test "echo $e" 1
+done