summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2025-05-02 08:46:41 -0600
committerSimon Glass <sjg@chromium.org>2025-05-30 09:49:32 +0100
commitb62a8cfbb6d365c650f64396963becf192b5255a (patch)
tree2e1b4747823f66fd1afbae1263d20c78e002db10
parent87750b027691cd67a20ae6c5b95df65c33e8294e (diff)
expo: Check the screen contents after rendering
Make sure that the screen contents are as expected when a scene has been rendered. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--test/boot/expo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/boot/expo.c b/test/boot/expo.c
index a50e9f721de..6fb9f810885 100644
--- a/test/boot/expo.c
+++ b/test/boot/expo.c
@@ -11,6 +11,7 @@
#include <video.h>
#include <linux/input.h>
#include <test/ut.h>
+#include <test/video.h>
#include "bootstd_common.h"
#include <test/cedit-test.h>
#include "../../boot/scene_internal.h"
@@ -645,6 +646,9 @@ static int expo_render_image(struct unit_test_state *uts)
ut_assertok(scene_arrange(scn));
ut_assertok(expo_render(exp));
+ ut_asserteq(10314, video_compress_fb(uts, dev, false));
+ ut_assertok(video_check_copy_fb(uts, dev));
+
/* make sure only the preview for the second item is shown */
obj = scene_obj_find(scn, ITEM1_PREVIEW, SCENEOBJT_NONE);
ut_asserteq(true, obj->flags & SCENEOF_HIDE);