zephyr/tests
Peter A. Bigot d40b8ce1fb sys: dlist: Add sys_dnode_is_linked
The original implementation allows a list to be corrupted by list
operations on the removed node.  Existing code attempts to avoid this by
using external state to determine whether a node is in a list, but this
is fragile and fails when the state that holds the flag value is changed
after the node is removed, e.g. in preparation for re-using the node.

Follow Linux in invalidating the link pointers in a removed node.  Add
API so that detection of particpation in a list is available at the node
abstraction.

This solution relies on the following steady-state invariants:
* A node (as opposed to a list) will never be adjacent to itself in a
  list;
* The next and prev pointers of a node are always either both null or
  both non-null.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2019-01-23 20:46:49 +01:00
..
application_development cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
benchmarks kernel: remove k_alert API 2019-01-16 21:34:07 -05:00
bluetooth tests: Prolong BT encrypted connection test 2019-01-18 18:28:32 -05:00
boards tests: intel_s1000: flash_map: Enable tests for flash_map 2019-01-16 21:22:56 -05:00
booting/stub cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
cmsis_rtos_v1 tests: Increase the stack size by CONFIG_TEST_EXTRA_STACKSIZE. 2019-01-16 06:12:33 -05:00
cmsis_rtos_v2 tests: cmsis: Disable two cmsis portability tests on x86_64 2019-01-11 15:18:52 -05:00
compliance
coverage tests: coverage: Add Gcov support. 2019-01-16 06:12:33 -05:00
crypto cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
drivers tests: uart: Add tests for async UART API. 2019-01-22 18:54:12 +01:00
include arch/x86_64: New architecture added 2019-01-11 15:18:52 -05:00
kernel sys: dlist: Add sys_dnode_is_linked 2019-01-23 20:46:49 +01:00
lib tests: samples: Disable newlib tests on x86_64 2019-01-11 15:18:52 -05:00
misc/test_build tests: samples: Disable newlib tests on x86_64 2019-01-11 15:18:52 -05:00
net tests: Dont run coverage for select test cases. 2019-01-16 06:12:33 -05:00
posix tests/posix/common: Correct TEST_EXTRA_STACKSIZE usage 2019-01-11 15:18:52 -05:00
shell cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
subsys tests: mcuboot: Erase image slot before starting test 2019-01-21 12:00:55 -05:00
unit lib: flatten all loose components into one lib 2019-01-22 07:45:22 -05:00
ztest cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
CMakeLists.txt tests: coverage: Add Gcov support. 2019-01-16 06:12:33 -05:00
Kconfig Gcov: Added Kconfig changes needed by Gcov. 2019-01-16 06:12:33 -05:00