Skip to content

Commit

Permalink
fix issue #52 test; rinutils subdir
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomif committed May 31, 2021
1 parent a273dae commit f04de94
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions fortune-mod/tests/t/check-rinutils.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,18 @@ sub check_file

sub mytest
{
foreach my $fn ("rinutils/rinutils/include/rinutils/portable_time.h")
my $dir = "$ENV{SRC_DIR}/rinutils";
if ( -e $dir )
{
my $err = check_file("$ENV{SRC_DIR}/${fn}");
if ( $err ne '' )
# body...
foreach my $fn ("rinutils/include/rinutils/portable_time.h")
{
fail("$fn failed - $err.");
return;
my $err = check_file("${dir}/${fn}");
if ( $err ne '' )
{
fail("$fn failed - $err.");
return;
}
}
}
pass("All are ok.");
Expand Down

0 comments on commit f04de94

Please sign in to comment.