zephyr/tests
Daniel Leung 771c177909 tests: k_heap_api: make alloc pending tests a bit more robust
Both alloc_pending tests requires the main thread to utilize
the heap so that child threads must pend on memory allocations.
However, the previous implementation was not SMP friendly where
the child threads could run and succeeded in memory allocation
on other CPUs while the main thread continued to allocate
memory. The main thread would fail to allocate memory if
the child thread (on other CPU) has not freed the memory yet.
Not to mention that, in this scenario, the child thread was not
pending on memory allocation which defeated the purpose of
the test. So to fix this, make sure the main thread allocates
enough memory so future allocations must go into pending.
Also, check that the child thread cannot allocation memory
when first entered so it is actually going into pending.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2022-02-08 07:34:48 -05:00
..
application_development/gen_inc_file cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
arch modules: trusted-firmware-m: Use TF-M install headers as interface 2022-02-01 11:31:36 +01:00
benchmarks pm: s/PM_DEVICE_(DT_(INST))_REF/PM_DEVICE_(DT_(INST))_GET 2022-01-18 12:14:06 -05:00
bluetooth Bluetooth: tests: edtt: fix buffer overflow error 2022-02-05 06:19:00 -05:00
boards tests: boards: intel_s1000_crb: fix k_sleep arguments 2022-01-31 15:25:42 -05:00
boot/uefi tests: uefi: move uefi test out of hello world 2021-10-22 06:36:51 -04:00
cmake/config_dir cmake: APPLICATION_CONFIG_DIR support implemented 2021-11-10 08:25:36 -05:00
crypto tests: remove @return doc for void functions 2022-01-12 16:02:16 -05:00
drivers tests: build_all: Add net tag to the modem driver test 2022-02-08 07:26:45 -05:00
kernel tests: k_heap_api: make alloc pending tests a bit more robust 2022-02-08 07:34:48 -05:00
lib tests/lib: devicetree: Remove references to deprecated macros 2022-02-05 06:26:25 -05:00
misc cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
net kernel: workq: Fix type errors in delayable work handlers 2022-02-02 18:43:12 -05:00
posix tests: lib: getopt 2022-01-06 21:26:59 +01:00
subsys tests: logging: log_api: Add test for argument evaluation 2022-02-08 07:32:43 -05:00
unit lib: os: crc: Rework the crc16() implementation 2022-02-04 12:33:22 -05:00
ztest tests: ztress: fix dependency on SMP 2022-01-12 14:13:21 -05:00