diff options
| author | Bernd Edlinger <[email protected]> | 2025-01-09 15:14:15 +0100 |
|---|---|---|
| committer | Tomas Mraz <[email protected]> | 2025-01-13 20:21:35 +0100 |
| commit | 9e362d7a9da3677015646bd7b3d8a7ef4e8e8ec9 (patch) | |
| tree | 1c6f968d4e6759d5420b4745562a7b3d708a728c | |
| parent | speed: Pass IV to EVP_CipherInit_ex for -evp runs with non-AEAD ciphers (diff) | |
| download | openssl-9e362d7a9da3677015646bd7b3d8a7ef4e8e8ec9.tar.gz openssl-9e362d7a9da3677015646bd7b3d8a7ef4e8e8ec9.zip | |
Fix intermittent test failure in 80-test_cmp_http.t
output to stderr is unbuffered bypassing the normal output, which does
not happen at line boundaries and is therefore confusing the TAP parser.
This is known to cause random test failures like this one:
80-test_cmp_http.t (Wstat: 0 Tests: 5 Failed: 0)
Parse errors: Tests out of sequence. Found (6) but expected (5)
Bad plan. You planned 6 tests but ran 5.
Fixes #23992
Reviewed-by: Tom Cosgrove <[email protected]>
Reviewed-by: Saša Nedvědický <[email protected]>
(Merged from https://github.com/openssl/openssl/pull/26364)
| -rw-r--r-- | test/recipes/80-test_cmp_http.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/recipes/80-test_cmp_http.t b/test/recipes/80-test_cmp_http.t index e045f29c43a..908909c2c64 100644 --- a/test/recipes/80-test_cmp_http.t +++ b/test/recipes/80-test_cmp_http.t @@ -270,7 +270,7 @@ sub start_mock_server { print "Current directory is ".getcwd()."\n"; print "Launching mock server: $cmd\n"; die "Invalid port: $server_port" unless $server_port =~ m/^\d+$/; - my $pid = open($server_fh, "$cmd|") or die "Trying to $cmd"; + my $pid = open($server_fh, "$cmd 2>".result_dir()."/error.txt |") or die "Trying to $cmd"; print "Pid is: $pid\n"; if ($server_port == 0) { # Find out the actual server port |
