From 77f32e0b49bbf74b53afa47320689d9f85e4af27 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 18 Aug 1996 14:39:33 +0000 Subject: [PATCH] In cmp, use $exp_name, not \$srcdir/$exp_name. --- tests/tr/build-script.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tr/build-script.pl b/tests/tr/build-script.pl index 5250d5c64f..5017126d39 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 <&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; -- 2.47.2