Skip to content

Commit de6e928

Browse files
committed
Add stdout flush
1 parent 5111804 commit de6e928

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

t/12_diff_opensslversions.t

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ my @args="";
2323
# that can be done better but I am a perl n00b ;-)
2424
my $os=`perl -e 'print "$^O";'`;
2525

26+
# useful against "failed to flush stdout" messages
27+
STDOUT->autoflush(1);
28+
2629
die "Unable to open $prg" unless -f $prg;
2730
die "Unable to open $distro_openssl" unless -f $distro_openssl;
2831

t/21_baseline_starttls.t

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ my $openssl_out="";
2626
my $socket_regex_bl='(e|E)rror|\.\/testssl\.sh: line |(f|F)atal|(c|C)ommand not found';
2727
my $openssl_regex_bl='(e|E)rror|(f|F)atal|\.\/testssl\.sh: line |Oops|s_client connect problem|(c|C)ommand not found';
2828

29+
# useful against "failed to flush stdout" messages
30+
STDOUT->autoflush(1);
31+
2932
# my $socket_json="";
3033
# my $openssl_json="";
3134
# $check2run_smtp="--jsonfile tmp.json $check2run_smtp";

0 commit comments

Comments
 (0)