openssl/test/testutil
Bernd Edlinger c37f564bb8 Fix test failure in 30-test_evp_pkey_provided.t
In this test there is a random test output corruption.
`make test TESTS=test_evp_pkey_provided V=1` has some random output,
that can with a certain probability start a line with "ok" or so:

    # Setting up a OSSL_ENCODER context with passphrase
    # Testing with no encryption
jLixONcRPi/m64CGie4KKKDuGeTjtYwfima3BNYCGlgbLGeK3yYxBfZb9JjviOJ4
    # nHaNsRsONTAKyg==

This happens because large random data is output to bio_out
but some data remains buffered, and then test_note() is used to print
some comments on the bio_err file.  This causes output corruption that
confuses the TAP parser.
Fix that by flushing any pending output with test_flush_stdout() first.

Fixes #23992

Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26383)
2025-01-15 09:16:04 +01:00
..
apps_shims.c
basic_output.c
cb.c
driver.c
fake_random.c
format_output.c
helper.c
load.c
main.c
options.c
output.c
output.h
provider.c
random.c
stanza.c
test_cleanup.c
test_options.c
tests.c Fix test failure in 30-test_evp_pkey_provided.t 2025-01-15 09:16:04 +01:00
testutil_init.c
tu_local.h