diff --git a/t/12_diff_opensslversions.t b/t/12_diff_opensslversions.t index eb4d668..b848dc0 100755 --- a/t/12_diff_opensslversions.t +++ b/t/12_diff_opensslversions.t @@ -23,6 +23,9 @@ my @args=""; # that can be done better but I am a perl n00b ;-) my $os=`perl -e 'print "$^O";'`; +# useful against "failed to flush stdout" messages +STDOUT->autoflush(1); + die "Unable to open $prg" unless -f $prg; die "Unable to open $distro_openssl" unless -f $distro_openssl; diff --git a/t/21_baseline_starttls.t b/t/21_baseline_starttls.t index 17be160..ad50f90 100755 --- a/t/21_baseline_starttls.t +++ b/t/21_baseline_starttls.t @@ -26,6 +26,9 @@ my $openssl_out=""; my $socket_regex_bl='(e|E)rror|\.\/testssl\.sh: line |(f|F)atal|(c|C)ommand not found'; my $openssl_regex_bl='(e|E)rror|(f|F)atal|\.\/testssl\.sh: line |Oops|s_client connect problem|(c|C)ommand not found'; +# useful against "failed to flush stdout" messages +STDOUT->autoflush(1); + # my $socket_json=""; # my $openssl_json=""; # $check2run_smtp="--jsonfile tmp.json $check2run_smtp";