mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(run_tests): Invoke `diff' when differences are found.
This commit is contained in:
1 parent
5813e98ace
commit
77dfc82293
1 file changed
+5
-2
+5
-2
@@ -12,7 +12,7 @@ use FileHandle;
|
||||
use File::Compare qw(compare);
|
||||
|
||||
@ISA = qw(Exporter);
|
||||
($VERSION = '$Revision: 1.6 $ ') =~ tr/[0-9].//cd;
|
||||
($VERSION = '$Revision: 1.7 $ ') =~ tr/[0-9].//cd;
|
||||
@EXPORT = qw (run_tests);
|
||||
|
||||
my $debug = $ENV{DEBUG};
|
||||
@@ -271,7 +271,10 @@ sub run_tests ($$$$$)
|
||||
if (compare ($expect->{$eo}, $tmp{$eo}))
|
||||
{
|
||||
warn "$program_name: test $test_name: std$eo_lower mismatch,"
|
||||
. " comparing $expect->{$eo} and $tmp{$eo}\n";
|
||||
. " comparing $expect->{$eo} (expected)"
|
||||
. " and $tmp{$eo} (actual)\n";
|
||||
# Ignore any failure.
|
||||
system "diff -c $expect->{$eo} $tmp{$eo}";
|
||||
$fail = 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user