diff options
author | Jim Meyering <jim@meyering.net> | 1996-08-18 14:39:33 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-08-18 14:39:33 +0000 |
commit | 77f32e0b49bbf74b53afa47320689d9f85e4af27 (patch) | |
tree | 253a2a1b6510dcd0e25cea1970671fd729db14ec | |
parent | a0810c6caeced8caba9d7e12f4e0c0f5c37726e3 (diff) | |
download | coreutils-77f32e0b49bbf74b53afa47320689d9f85e4af27.tar.xz |
In cmp, use $exp_name, not \$srcdir/$exp_name.
-rwxr-xr-x | tests/tr/build-script.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tr/build-script.pl b/tests/tr/build-script.pl index 5250d5c64..5017126d3 100755 --- a/tests/tr/build-script.pl +++ b/tests/tr/build-script.pl @@ -46,8 +46,8 @@ foreach $test_vector (@Test::t) open (EXP, ">$exp_name") || die "$0: $in: $!\n"; print EXP $expected; close (EXP); - my $arg2 = ($s2 ? " '$s2'" : ''); my $err_output = "t$test_name.err"; + my $arg2 = ($s2 ? " '$s2'" : ''); my $cmd = "\$xx $flags \'$s1\'$arg2 < \$srcdir/$in > $out 2> $err_output"; $exp_name = "\$srcdir/$exp_name"; print <<EOF ; @@ -57,7 +57,7 @@ if test \$code != $e_ret_code ; then \$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 \$srcdir/$exp_name + 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; |