zephyr/tests/lib/sprintf
Keith Packard bd2ad04f38 tests/sprintf: Increase test stack size for picolibc
Picolibc needs more than 1024 bytes of stack when printing floating point
values exactly. Increase the stack to 2048 bytes.

Signed-off-by: Keith Packard <keithp@keithp.com>
2023-05-26 09:55:52 -04:00
..
src tests/sprintf: Test floating printf on soft-fp targets too 2023-05-26 09:55:52 -04:00
cbprintf_nano.conf
CMakeLists.txt
prj_new.conf tests: lib: sprintf: migrating lib tests to new ZTEST API 2022-08-19 20:45:19 +00:00
prj_picolibc_new.conf tests/sprintf: Increase test stack size for picolibc 2023-05-26 09:55:52 -04:00
prj_picolibc.conf tests/sprintf: Increase test stack size for picolibc 2023-05-26 09:55:52 -04:00
prj.conf tests/sprintf: Enable picolibc float I/O 2022-11-08 10:44:36 +01:00
README.txt
testcase.yaml tests: sprintf: cleanup test metadata 2023-05-25 04:44:11 -04:00

Title: sprintf() APIs

Description:

This test verifies that sprintf() and its variants operate as expected.

--------------------------------------------------------------------------------

Building and Running Project:

This project outputs to the console.  It can be built and executed
on QEMU as follows:

    make run

--------------------------------------------------------------------------------

Troubleshooting:

Problems caused by out-dated project information can be addressed by
issuing one of the following commands then rebuilding the project:

    make clean          # discard results of previous builds
                        # but keep existing configuration info
or
    make pristine       # discard results of previous builds
                        # and restore pre-defined configuration info

--------------------------------------------------------------------------------
Sample Output:

tc_start() - Test sprintf APIs

===================================================================
Testing sprintf() with integers ....
Testing snprintf() ....
Testing vsprintf() ....
Testing vsnprintf() ....
Testing sprintf() with strings ....
Testing sprintf() with misc options ....
Testing sprintf() with doubles ....
===================================================================
PASS - RegressionTask.
===================================================================
PROJECT EXECUTION SUCCESSFUL