zephyr/tests
Andy Ross fdba8be777 tests/kernel/smp: Fixup IPI test
This test was written to assume that the only IPI handled would be the
one generated by the test, but the scheduler also generates an IPI any
time a thread becomes runnable, and there's no way to lock that out in
an SMP system where the other CPU is going to be doing its own thing
(we can't use "1cpu" because that locks interrupts on the other CPU
and obviously this is a test of an interrupt).

Change the logic to detect that "at least one IPI was received", which
is fine for coverage.  Really a better place for a test like this
would have been tests/kernel/mp, which is a test of the lower level
APIs and runs the other CPU deterministically (i.e. not under the
control of the Zephyr scheduler).

Also some misc fixes:

* Don't busy wait at the start, that's needless.

* Sleep instead of busywaiting after sending the IPI, spinning isn't
  needed here and acts to increase CI load needlessly.

* Declare the cross thread signal variable volatile for correctness
  (though this error seems to have been benign in practice).

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2020-07-07 12:59:33 -04:00
..
application_development zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
arch soc: arm: Fix header inclusion from deprecated paths 2020-06-09 10:38:36 +02:00
benchmarks benchmarks: timing_info: fix x86 cycles to nsec conversion 2020-07-02 20:51:12 -04:00
bluetooth Bluetooth: test: Print disconnect reason in hex value 2020-07-06 11:15:39 +02:00
boards samples: remove board_shell 2020-06-24 21:37:12 -04:00
crypto zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
deprecated zephyr: Use deprecated instead of legacy for Kconfig int types 2020-06-09 06:49:56 -05:00
drivers tests: drivers: dac: loopback: use internal loopback on the twr_ke18f 2020-07-03 08:05:25 -04:00
kernel tests/kernel/smp: Fixup IPI test 2020-07-07 12:59:33 -04:00
lib tests: filter out nsim as it's slow 2020-07-07 15:09:34 +02:00
misc/test_build kernel: logging: convert K_DEBUG to LOG_DBG 2020-06-25 16:12:36 -05:00
net tests: net: vlan: Fix typos 2020-07-02 08:37:17 -04:00
portability tests: portability: cmsis_rtos_v1: Increase clock tolerance 2020-06-23 19:21:10 +02:00
posix posix/fs: Fix POSIX lseek to return position upon completion 2020-07-04 07:46:51 -04:00
shell tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
subsys tests: fs: nvs: Add two test cases for testing nvs_gc 2020-06-26 12:07:13 -05:00
unit Revert "tests: dlist to add a testcase and add some tags" 2020-07-02 14:40:20 -05:00
ztest cmake: make find_package(ZephyrUnittest...) REQUIRED 2020-06-12 11:10:23 +02:00