Skip to content

Commit 6c6a7a8

Browse files
dragosviafan
authored andcommitted
Fixed testing folder comparison where it is only comparing one way
1 parent a6d4604 commit 6c6a7a8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

t/lib/Test/Diff.pm

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ sub dir_diff {
6767

6868
files_diff($t1, $t2, { base_dir => $base }) if (-f $t1);
6969
}, $d1);
70+
71+
find(sub {
72+
my $t1 = $File::Find::name;
73+
my $t2 = catfile($d1, abs2rel($t1, $d2));
74+
75+
files_diff($t1, $t2, { base_dir => $base }) if (-f $t1);
76+
}, $d2);
7077
};
7178
}
7279

0 commit comments

Comments
 (0)