X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/f67e3671c985ad8095dc6fcc8be7ba6dd25cdf63..6db4565184f61a8fa55e32296fdad530ebf00d6b:/test/format/test-rightjustify diff --git a/test/format/test-rightjustify b/test/format/test-rightjustify index 2685efd0..4dec55ab 100755 --- a/test/format/test-rightjustify +++ b/test/format/test-rightjustify @@ -12,16 +12,18 @@ fi setup_test -actual=`${MH_LIB_DIR}/ap -format "%-30(friendly{text})<"` -expected=" No Such User<' '2>'; do + actual=`run_prog ${MH_LIBEXEC_DIR}/ap -format "$prefix%-20(friendly{text})<'` + expected="$prefix No Such User<&2 - echo " $expected" 1>&2 - echo "but instead got:" 1>&2 - echo " $actual" 1>&2 - failed=`expr ${failed:-0} + 1` -fi + if test x"$actual" != x"$expected"; then + echo "$0: right justification test expected:" 1>&2 + echo " $expected" 1>&2 + echo "but instead got:" 1>&2 + echo " $actual" 1>&2 + failed=`expr ${failed:-0} + 1` + fi +done exit $failed