tests/sprintf: Test picolibc inexact floating point printf

Picolibc has two floating point output modules, the default, "exact",
module which meets the ISO/IEC 9899:2011 specification and a smaller
"inexact" version which does not meet those specifications. Add a test for
this latter version to make sure it meets some modest Zephyr requirements.

Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Keith Packard 2023-05-20 17:34:08 -07:00 committed by Anas Nashif
parent a2d55f7b16
commit 51abcc3642

View file

@ -24,3 +24,12 @@ tests:
- libc
- picolibc
filter: CONFIG_PICOLIBC_SUPPORTED
libraries.libc.picolibc.sprintf_inexact:
extra_args: CONF_FILE=prj_picolibc_new.conf
extra_configs:
- CONFIG_PICOLIBC_USE_MODULE=y
- CONFIG_PICOLIBC_IO_FLOAT_EXACT=n
tags:
- libc
- picolibc
filter: CONFIG_PICOLIBC_SUPPORTED