[openssl/openssl] 292447: test: forward real stdio calls in bss_file unit te...
"'Jakub Zelenka' via openssl-commits" <[email protected]>
| Newsgroups | gmane.comp.encryption.openssl.cvs |
|---|---|
| Message-ID | <openssl/openssl/push/refs/heads/master/[email protected]> |
Branch: refs/heads/master
Home: https://github.com/openssl/openssl
Commit: 2924476b5591e691e904c4baf57894c526c4b8de
https://github.com/openssl/openssl/commit/2924476b5591e691e904c4baf57894c526c4b8de
Author: Jakub Zelenka <[email protected]>
Date: 2026-08-20 (Thu, 20 Aug 2026)
Changed paths:
M test/unit/crypto/bio/test_bss_file.c
Log Message:
-----------
test: forward real stdio calls in bss_file unit test mocks
The --wrap link option rewrites the stdio symbols of everything linked
into the test binary. In --coverage builds libgcov reads and writes the
.gcda files at process exit through fread/fwrite/fseek/ftell/fclose,
which then hit the cmocka mocks with no expectations queued and make
the binary exit with 255 after all tests have passed. Forward calls on
any stream other than the fake test pointers to the real functions.
Assisted-by: Claude:claude-fable-5
Reviewed-by: Tomas Mraz <[email protected]>
Reviewed-by: Bob Beck <[email protected]>
Merge-date: Thu Aug 20 07:50:12 2026
Merged-from: https://github.com/openssl/openssl/pull/32431
To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications
--
You received this message because you are subscribed to the Google Groups "openssl-commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/a/openssl.org/d/msgid/openssl-commits/openssl/openssl/push/refs/heads/master/38dd8e-292447%40github.com.