1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-04 03:06:23 +02:00

Save error output in t*.err.

This commit is contained in:
Jim Meyering
1995-05-16 17:19:46 +00:00
parent be7c86dfd2
commit c9c8ba714c

View File

@@ -33,9 +33,10 @@ while (<>)
print EXP $expected;
close(EXP);
$arg2 = ($s2 ? " '$s2'" : '');
$cmd = "$tr $flags \'$s1\'$arg2 < $in > $out";
$err_output = "t$test_name.err";
$cmd = "$tr $flags \'$s1\'$arg2 < $in > $out 2> $err_output";
print <<EOF ;
$cmd 2> /dev/null
$cmd
code=\$?
if test \$code != $e_ret_code ; then
echo Test $test_name failed: tr return code \$code differs from expected value $e_ret_code 1>&2
@@ -51,6 +52,7 @@ else
errors=`expr \$errors + 1` ;;
esac
fi
test -s $err_output || rm -f $err_output
EOF
}
print <<EOF2 ;