aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSimon Glass2023-06-01 10:22:35 -0600
committerTom Rini2023-07-14 12:54:51 -0400
commit14a86a510792cb8a69ded6ea3b6c34a150bae3ab (patch)
treef41cc38aa41eeec472e9baa7a1f8da094f7974d9 /test
parent42b18494bdaf677c4726ef47a839b16a1a3daba2 (diff)
expo: Avoid automatically arranging the scene
This should ideally be done once after all scene changes have been made. Require an explicit call when everything is ready. Always arrange after a key it sent, just for convenience. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test')
-rw-r--r--test/boot/expo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/boot/expo.c b/test/boot/expo.c
index 3c0bc78bb7a..56a22ba9b06 100644
--- a/test/boot/expo.c
+++ b/test/boot/expo.c
@@ -348,7 +348,9 @@ static int expo_object_menu(struct unit_test_state *uts)
ut_asserteq(desc_id, item->desc_id);
ut_asserteq(preview_id, item->preview_id);
- /* adding an item should cause the first item to become current */
+ ut_assertok(scene_arrange(scn));
+
+ /* arranging the scene should cause the first item to become current */
ut_asserteq(id, menu->cur_item_id);
/* the title should be at the top */