zephyr/tests/kernel
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
..
common tests: skip arch_nop test when machine timer uses divided sys clock 2021-12-20 17:51:30 +01:00
condvar/condvar_api tests: condvar_api: fix empty loop error for XCC 2022-01-25 21:16:32 -05:00
context tests: kernel: context: add MIPS support 2022-01-19 13:48:21 -05:00
device tests: kernel: device: remove PM related tests 2021-12-02 10:53:39 +01:00
early_sleep
events tests: kernel/events/event_api: memory coherence fixes 2022-01-18 20:26:42 -05:00
fatal tests/kernel/fatal/exception: Remove legacy irq_lock() usage 2022-01-19 15:10:55 -05:00
fifo
fpu_sharing tests: remove @return doc for void functions 2022-01-12 16:02:16 -05:00
gen_isr_table
interrupt tests/kernel/interrupt: Don't wait so long just for a tick 2022-01-26 13:34:45 -05:00
lifo
mbox test/kernel/mbox: Drop needless _1cpu_ from test cases 2022-01-26 13:34:45 -05:00
mem_heap tests: k_heap_api: make alloc pending tests a bit more robust 2022-02-08 07:34:48 -05:00
mem_protect tests: mem_protect: enlarge heap size of RISCV64 2022-01-18 13:11:36 -05:00
mem_slab tests: mslab_api: remove double asterisk inside func comments 2022-01-12 16:02:16 -05:00
mp tests/kernel/mp: Must enable KERNEL_COHERENCE explicitly 2022-01-21 13:22:15 -05:00
msgq tests: msgq: improve code coverage for msgq API 2021-11-01 11:15:15 -04:00
mutex tests: remove @return doc for void functions 2022-01-12 16:02:16 -05:00
obj_tracking Revert "tests/kernel/obj_tracking: Filter cAVS 2.5 builds to prevent DSP host hangs" 2022-01-26 10:09:19 -05:00
pending
pipe tests: pipes: Add pipe flush tests 2022-01-10 12:17:14 -05:00
poll tests: removing incorrect testcases of poll 2021-11-29 18:26:02 -05:00
profiling/profiling_api pm: policy: return a reference to the next state 2022-01-11 10:46:20 +01:00
queue tests/kernel/queue: Mark SMP-unsafe case 1cpu, reduce logging output 2022-01-21 13:22:15 -05:00
sched test: change test suite name and testcase name 2021-11-03 16:44:50 -04:00
semaphore tests: semaphore: fix empty loop error for XCC 2022-01-25 21:16:32 -05:00
sleep
smp tests/kernel/smp: Add SMP switch torture test 2022-01-18 12:05:54 -05:00
smp_boot_delay tests/kernel: Add test for CONFIG_SMP_BOOT_DELAY 2021-11-23 13:23:54 -05:00
spinlock
stack/stack
threads tests: kernel: threads: Correct test assertion in thread_apis test 2021-12-13 20:13:21 -05:00
tickless/tickless_concept
timer tests: kernel: cycle64: mark test as slow 2021-11-29 10:35:49 -05:00
workq tests: remove @return doc for void functions 2022-01-12 16:02:16 -05:00
xip