summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-09-30 02:41:50 +0000
committerJim Meyering <jim@meyering.net>1996-09-30 02:41:50 +0000
commit99fe90503522450ae192460c7a6de2b349f6ef66 (patch)
treea86e6d6a88ed59bc2a37d4ab77a7c4dae9712673 /tests
parentccf556a616bef9134db4c22e2d94bd8b3dfeca71 (diff)
downloadcoreutils-99fe90503522450ae192460c7a6de2b349f6ef66.tar.xz
.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/cut/build-script.pl12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/cut/build-script.pl b/tests/cut/build-script.pl
index 0dd8e303f..bef83d46d 100755
--- a/tests/cut/build-script.pl
+++ b/tests/cut/build-script.pl
@@ -51,19 +51,19 @@ foreach $test_vector (@Test::t)
my $cmd = "\$xx $flags \$srcdir/$in > $out 2> $err_output";
$exp_name = "\$srcdir/$exp_name";
print <<EOF ;
-$cmd 2> /dev/null
+$cmd
code=\$?
if test \$code != $e_ret_code ; then
- echo Test $test_name failed: cut return code \$code differs from expected value $e_ret_code 1>&2
+ \$echo Test $test_name failed: $xx return code \$code differs from expected value $e_ret_code 1>&2
errors=`expr \$errors + 1`
else
cmp $out $exp_name
case \$? in
- 0) if test "\$VERBOSE" ; then echo passed $test_name; fi ;; # equal files
- 1) echo Test $test_name failed: files $out and $exp_name differ 1>&2;
+ 0) if test "\$VERBOSE" ; then \$echo passed $test_name; fi ;; # equal files
+ 1) \$echo Test $test_name failed: files $out and $exp_name differ 1>&2;
errors=`expr \$errors + 1` ;;
- 2) echo Test $test_name may have failed. 1>&2;
- echo The command \"cmp $out $exp_name\" failed. 1>&2 ;
+ 2) \$echo Test $test_name may have failed. 1>&2;
+ \$echo The command \"cmp $out $exp_name\" failed. 1>&2 ;
errors=`expr \$errors + 1` ;;
esac
fi