From c288f113975ce682db6dc2a0323c6da0f7b70bd5 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Tue, 1 Oct 2024 07:43:55 +0300 Subject: [PATCH] Try to reproduce https://github.com/shlomif/shlomi-fish-homepage/issues/14 fortune -m multiple results on cygwin --- CI-testing/continuous-integration-testing.pl | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/CI-testing/continuous-integration-testing.pl b/CI-testing/continuous-integration-testing.pl index c871130..654570e 100644 --- a/CI-testing/continuous-integration-testing.pl +++ b/CI-testing/continuous-integration-testing.pl @@ -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'!"; + } + } + }