]> git.dujemihanovic.xyz Git - u-boot.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)
commitbdfe6907e54d6ead19aa07ac4049223e28d4d0a5
tree431a5ed1083b83f5eadb3598f2ee7dc50c138e78
parent77ed7a2ac975e4b72a1bd87e5c475c08c23bb06a
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] ea9dc35aab ("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