1Title: Kernel Access to Dynamic Memory Allocation functions provided by 2Standard Libraries 3 4Description: 5 6This test verifies kernel access to the dynamic memory allocation functions 7provided by standard C libraries supported in Zephyr: 8NEWLIB and MINIMAL_LIB. 9It is intended to catch issues in which a library is completely absent 10or non-functional, and is NOT intended to be a comprehensive test suite 11of all functionality provided by the libraries. 12 13-------------------------------------------------------------------------------- 14 15Building and Running Project: 16 17This project outputs to the console. It can be built and executed 18on QEMU as follows: 19 20 make run 21 22-------------------------------------------------------------------------------- 23 24Troubleshooting: 25 26Problems caused by outdated project information can be addressed by 27issuing one of the following commands then rebuilding the project: 28 29 make clean # discard results of previous builds 30 # but keep existing configuration info 31or 32 make pristine # discard results of previous builds 33 # and restore pre-defined configuration info 34 35-------------------------------------------------------------------------------- 36 37Sample Output: 38 39***** BOOTING ZEPHYR OS vxxxx - BUILD: xxxx ***** 40Running test suite test_c_lib_dynamic_memalloc 41=================================================================== 42starting test - test_malloc 43PASS - test_malloc 44=================================================================== 45starting test - test_free 46PASS - test_free 47=================================================================== 48starting test - test_calloc 49PASS - test_calloc 50=================================================================== 51starting test - test_realloc 52PASS - test_realloc 53=================================================================== 54starting test - test_reallocarray 55PASS - test_reallocarray 56=================================================================== 57starting test - test_memalloc_all 58PASS - test_memalloc_all 59=================================================================== 60starting test - test_memalloc_max 61PASS - test_memalloc_max 62=================================================================== 63=================================================================== 64PROJECT EXECUTION SUCCESSFUL 65