]> git.ipfire.org Git - thirdparty/openssl.git/commit
test/bioprinttest.c: skip failing checks on HPE NonStop
authorEugene Syromiatnikov <esyr@openssl.org>
Thu, 20 Nov 2025 15:56:45 +0000 (16:56 +0100)
committerTomas Mraz <tomas@openssl.org>
Wed, 3 Dec 2025 13:24:39 +0000 (14:24 +0100)
commitedc8edb9579ac1219df302529f986e5ddf755d24
treeb6d1e8034f398517cb538cfd6e79329db5c8a39c
parent47418dd8de635448fd1f5dfb583070e1f5fcf559
test/bioprinttest.c: skip failing checks on HPE NonStop

Apparently, NonStop libc's printf implementation is not
standard-conforming in its handling of "0" flag with "o" specifier:
per [1], "it shall increase the precision, if and only if necessary,
to force the first digit of the result to be a zero", however, NonStop
libc adds a superfluous zero in cases where precision is 1;  see also
commit 0f107c709c73 "crypto/bio/bio_print.c: avoid superfluous zero
padding in %#o".  Avoid test case failures by wrapping the relevant test
cases in "if !defined(__TANDEM)".

[1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/printf.html

Resolves: https://github.com/openssl/openssl/issues/29025
Complements: a29d157fdb6d "Replace homebrewed implementation of *printf*() functions with libc"
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/29181)
test/bioprinttest.c