X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/13015c3c27462cb98027d644636ff526e10dd1d0..e45ba8b5562113b840aa0a7309936c7b7c62af72:/test/mhparam/test-mhparam diff --git a/test/mhparam/test-mhparam b/test/mhparam/test-mhparam index a75e1991..a2130ba7 100755 --- a/test/mhparam/test-mhparam +++ b/test/mhparam/test-mhparam @@ -165,6 +165,17 @@ 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 + # mhparam -debug # Some of its output depends on configure options, so don't bother to # check for correctness here.