Commit Graph

12 Commits (master)

Author SHA1 Message Date
Martin Kojtal c14396a5b6
Merge pull request #15045 from LDong-Arm/malloc_newlib_nano
Workaround for a bug in malloc() from newlib-nano 4.1.0 (in GCC 10.3)
2021-09-03 15:03:31 +01:00
Rajkumar Kanagaraj 9a144308ec Incorporate the review comments 2021-09-02 12:49:33 +01:00
Lingkai Dong 8e412987b1 Revert "TESTS: Reduce allocate memory size"
This reverts commit 6649e95106.

In the malloc test, `ALLOC_ARRAY_SIZE` defines the *capacity* of array
that stores pointers to `malloc`'d buffers. It is *not* the number
of allocations.

In an ideal scenario, the test makes as many allocations as possible
until the heap runs out and malloc() returns NULL. So revert the
capacity of the array of pointers from 50 back to 100 so this array
is less likely to run out before the heap does.
2021-09-01 17:21:32 +01:00
Rajkumar Kanagaraj 5d31b71f81 CMake: greentea: Add skip reason to rtos test 2021-08-23 21:44:16 +01:00
Rajkumar Kanagaraj 174e01667f CMake: Refactor rtos greentea test CMake
Initially, every library greentea test has its project() creation in
their CMake. As running greentea using CTest move all greentea test
suite under one global project mbed-os and MBED_CONFIG_PATH set at
the root mbed os CMake under the condition BUILD_GREENTEA_TESTS
check so refactored rtos greentea CMake accordingly.
2021-08-23 21:43:39 +01:00
Qinghao Shi 6649e95106 TESTS: Reduce allocate memory size 2021-08-17 09:59:00 +01:00
Jaeden Amero b5c2f7079e
Merge pull request #14718 from Meano/develop
Feature: Make changes for Cortex-A5 support
2021-07-01 10:23:41 +01:00
Hari Limaye f95052cf6f CMake: Require TEST_SOURCES in greentea CMake file
Assumption that greentea test file is always named main.cpp is
incorrect. Updated mbed_greentea_add_test() macro to make TEST_SOURCES
parameter compulsory, which is used to specify greentea test
file(s). This allows tests to use C, or have a different name.
Therefore also updated all pre-existing greentea test CMake files to
explicity add main.cpp to TEST_SOURCES.
2021-06-29 13:33:42 +01:00
Meano ff2188150a Make changes for Cortex-A5 support 2021-06-23 13:36:55 +08:00
Rajkumar Kanagaraj 6824b14e48 CMake: rename greentea test macro 2021-02-02 07:43:40 -08:00
Rajkumar Kanagaraj 2d53e005e8 CMake: Add CMake support for rtos greentea test 2021-01-05 09:11:41 -08:00
Rajkumar Kanagaraj fcf36bb9e2 Move rtos greentea test closure to library 2020-09-16 13:06:05 +01:00