Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fortune -m multiple results on cygwin
  • Loading branch information
shlomif committed Oct 1, 2024
1 parent 571000e commit c288f11
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions CI-testing/continuous-integration-testing.pl
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,24 @@ sub _transform
]
}
);
my $OUT_FN = "out.txt";
do_system(
{
cmd => [
"$WIN32__DOUBLE_AMPERSAND__PROPER_HANDLING__NEEDED_PREFIX $gdb_prefix c:/foo/games/fortune.exe -m Wiker > $OUT_FN"
]
}
);
my $content = path($OUT_FN)->slurp_utf8();
say $content;

if ( my @matches = $content =~ /Wiker/g )
{
my $count = @matches;
if ( $count != 1 )
{
die "Wrong \$count = '$count'!";
}
}

}

0 comments on commit c288f11

Please sign in to comment.