zephyr/tests/kernel
Andy Ross 8d13be016a tests/kernel/fatal/exception: Remove legacy irq_lock() usage
The irq_lock() API is a legacy API not to be used for synchronization
by new code, and in any case is only being used in cargo-cult fashion
here.  These test cases all do synchronous exceptions, there's
literally nothing to synchronize against.

    (And in this case they're exposing a legacy wart.  On platforms where:

    1. SMP=y, which causes irq_lock() to be implemented as a somewhat
       complicated global lock

    2. No ARCH_EXCEPT() macro is defined, which causes the kernel to
       use a fallback that simply aborts the current thread.

    ...this test will then abort a thread holding the lock, which will
    cause it to be orphaned (if it weren't a legacy API, the kernel
    should probably attempt to clean it up in k_thread_abort(), but it
    is, and it doesn't), so the next attempt to lock it will hang.
    And it's even worse, because this test builds with SMP=y and
    MP_NUM_CPUS=1, so the hand will happen with interrupts masked on a
    system with only one CPU, and everything will lock up solid.)

Fixes #41877

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2022-01-19 15:10:55 -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 cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02: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 tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
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 tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
fpu_sharing tests: remove @return doc for void functions 2022-01-12 16:02:16 -05:00
gen_isr_table tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
interrupt tests: interrupt: refine the interrupt testcases 2022-01-18 13:24:28 -05:00
lifo tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
mbox tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00
mem_heap tests: heap: add test case for coverage 2021-11-07 05:39:10 -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: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04: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 kernel: Bring back object tracking 2021-12-14 07:42:31 -05:00
pending cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
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: Coherence fixes for tests/kernel/queue 2022-01-18 19:18:09 -05:00
sched test: change test suite name and testcase name 2021-11-03 16:44:50 -04:00
semaphore cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
sleep cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
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 cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
stack/stack tests: stack: fix improper assert message 2021-10-13 06:17:23 -04:00
threads tests: kernel: threads: Correct test assertion in thread_apis test 2021-12-13 20:13:21 -05:00
tickless/tickless_concept cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
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 tests: added kernel tests for arm arch with linker script generator 2021-08-30 08:54:23 -04:00