Skip to content

Commit 86700db

Browse files
authored
Merge pull request #2957 from testssl/flush
Try to remove the "failed to flush stdout" messages
2 parents dd696bb + de6e928 commit 86700db

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

t/10_baseline_ipv4_http.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ my $socket_errors='(e|E)rror|FIXME|\.\/testssl\.sh: line |(f|F)atal|(c|C)ommand
3030
my $openssl_errors='(e|E)rror|FIXME|(f|F)atal|\.\/testssl\.sh: line |Oops|s_client connect problem|(c|C)ommand not found';
3131
my $json_errors='(id".*:\s"scanProblem"|severity".*:\s"FATAL"|"Scan interrupted")';
3232

33+
# useful against "failed to flush stdout" messages
34+
STDOUT->autoflush(1);
3335

3436
die "Unable to open $prg" unless -f $prg;
3537

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";

t/23_client_simulation.t

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

24+
# useful against "failed to flush stdout" messages
25+
STDOUT->autoflush(1);
26+
2427
# my $socket_json="";
2528
# my $openssl_json="";
2629
# $check2run="--jsonfile tmp.json $check2run";

0 commit comments

Comments
 (0)