aboutsummaryrefslogtreecommitdiff
path: root/test/dm
diff options
context:
space:
mode:
authorSean Anderson2020-09-14 11:02:03 -0400
committerTom Rini2020-10-08 11:42:36 -0400
commit3e41c7b253bc28278c3b3b6f49dfa4387290f5c4 (patch)
treefa97e1937515728a91e9db4739a49970c3aded87 /test/dm
parentaaa3645e16fcc164913af20ccb36a1ec77322008 (diff)
test: dm: Test for default led naming
This modifies the existing led test to check for default led naming as added in the previous patch. Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/dm')
-rw-r--r--test/dm/led.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/dm/led.c b/test/dm/led.c
index 8b587d0a22a..ac6ee363940 100644
--- a/test/dm/led.c
+++ b/test/dm/led.c
@@ -40,7 +40,8 @@ static int dm_test_led_default_state(struct unit_test_state *uts)
ut_assertok(led_get_by_label("sandbox:default_on", &dev));
ut_asserteq(LEDST_ON, led_get_state(dev));
- ut_assertok(led_get_by_label("sandbox:default_off", &dev));
+ /* Also tests default label behaviour */
+ ut_assertok(led_get_by_label("default_off", &dev));
ut_asserteq(LEDST_OFF, led_get_state(dev));
return 0;