diff options
author | Jim Meyering <jim@meyering.net> | 1995-05-16 17:19:46 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1995-05-16 17:19:46 +0000 |
commit | c9c8ba714c924fafe4c36bfc40b9cb62b95b37d6 (patch) | |
tree | a8353aacf4d860dbc3f70f9ed964c8e932f4951e /tests/tr | |
parent | be7c86dfd2260be0d9cc5407a0fabcd09334a8ed (diff) | |
download | coreutils-c9c8ba714c924fafe4c36bfc40b9cb62b95b37d6.tar.xz |
Save error output in t*.err.
Diffstat (limited to 'tests/tr')
-rwxr-xr-x | tests/tr/build-script | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/tr/build-script b/tests/tr/build-script index fd0a18924..5ede91975 100755 --- a/tests/tr/build-script +++ b/tests/tr/build-script @@ -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 ; |