]> git.baikalelectronics.ru Git - uboot.git/commit
test: reset: Extend base reset test to catch error
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 20 Apr 2021 08:42:25 +0000 (10:42 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 27 Apr 2021 12:07:05 +0000 (08:07 -0400)
commitb77963f7481bbb03b1fd77d8d99c901b94504fb3
tree431a5ed1083b83f5eadb3598f2ee7dc50c138e78
parentf146d18f25d7ac83faa5d5f4426798fad4af8f83
test: reset: Extend base reset test to catch error

With this extended test, we get the following failure :

=> ut dm reset_base
Test: dm_test_reset_base: reset.c
test/dm/reset.c:52, dm_test_reset_base(): reset_method3.id == reset_method3_1.id: Expected 0x14 (20), got 0x2 (2)
Test: dm_test_reset_base: reset.c (flat tree)
test/dm/reset.c:52, dm_test_reset_base(): reset_method3.id == reset_method3_1.id: Expected 0x14 (20), got 0x2 (2)
Failures: 2

A fix is needed in reset_get_by_index_nodev() when introduced in [1].

[1] c57d0fdb9b ("reset: Get the RESET by index without device")

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
arch/sandbox/dts/test.dts
test/dm/reset.c