linux/drivers/of/unittest-data
Frank Rowand 74df14cd30 of: unittest: add node lifecycle tests
Add tests to exercise the actions that occur when the reference count
of devicetree nodes decrement to zero and beyond.  Decrementing to
zero triggers freeing memory allocated for the node.

This commit will expose a pr_err() issue in of_node_release(), resulting
in some kernal warnings and stack traces.

When scripts/dtc/of_unittest_expect processes the console messages,
it will also report related problems for EXPECT messages due to the
pr_err() issue:
   **     missing EXPECT begin      :    5

Signed-off-by: Frank Rowand <frowand.list@gmail.com>
Link: https://lore.kernel.org/r/20230213185702.395776-5-frowand.list@gmail.com
[robh: Fix !CONFIG_OF_DYNAMIC build]
Signed-off-by: Rob Herring <robh@kernel.org>
2023-02-20 15:36:51 -06:00
..
Makefile of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_0.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_1.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_2.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_3.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_4.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_5.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_6.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_7.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_8.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_9.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_10.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_11.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_12.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_13.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_15.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_16.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_17.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_18.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_19.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_20.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_bad_add_dup_node.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_bad_add_dup_prop.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_bad_phandle.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_bad_symbol.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_base.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_common.dtsi of: unittest: Create overlay_common.dtsi and testcases_common.dtsi 2021-03-23 15:27:51 -06:00
overlay_gpio_01.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_gpio_02a.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_gpio_02b.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_gpio_03.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_gpio_04a.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay_gpio_04b.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
overlay.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
static_base_1.dts of: unittest: Statically apply overlays using fdtoverlay 2021-03-23 15:27:51 -06:00
static_base_2.dts of: unittest: Statically apply overlays using fdtoverlay 2021-03-23 15:27:51 -06:00
testcases_common.dtsi of: unittest: add node lifecycle tests 2023-02-20 15:36:51 -06:00
testcases.dtso of: overlay: rename overlay source files from .dts to .dtso 2022-10-26 09:02:28 -05:00
tests-address.dtsi of: unittest: Use bigger address cells to catch parser regressions 2020-08-03 16:24:49 -06:00
tests-interrupts.dtsi of: unittest: document intentional interrupt-map provider build warning 2021-11-01 20:33:56 -05:00
tests-lifecycle.dtsi of: unittest: add node lifecycle tests 2023-02-20 15:36:51 -06:00
tests-match.dtsi License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
tests-overlay.dtsi of/unittest: Fix I2C bus unit-address error 2018-09-19 15:10:06 -07:00
tests-phandle.dtsi of: unittest: Add phandle remapping test 2018-02-12 08:37:59 -06:00
tests-platform.dtsi License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00