dm: video: fix test failures with enabled default TrueType font
PATCH 1/1 dm: video: fix test failures with enabled default TrueType font
With enabled default Nimbus font dm_test_video_truetype* tests fail. Update expected expressions to fix them.
Signed-off-by Anatolij Gustschin <[email protected]>
--- test/dm/video.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
test/dm/video.c +3 -3
@@ -335,7 +335,7 @@ static int dm_test_video_truetype(struct unit_test_state *uts)ut_assertok (uclass_get_device (UCLASS_VIDEO ,0 , &dev));ut_assertok (uclass_get_device (UCLASS_VIDEO_CONSOLE ,0 , &con));vidconsole_put_string (con, test_string); -ut_asserteq (12619 ,compress_frame_buffer (dev)); +ut_asserteq (12237 ,compress_frame_buffer (dev));return 0 ; }
@@ -356,7 +356,7 @@ static int dm_test_video_truetype_scroll(struct unit_test_state *uts)ut_assertok (uclass_get_device (UCLASS_VIDEO ,0 , &dev));ut_assertok (uclass_get_device (UCLASS_VIDEO_CONSOLE ,0 , &con));vidconsole_put_string (con, test_string); -ut_asserteq (33849 ,compress_frame_buffer (dev)); +ut_asserteq (35030 ,compress_frame_buffer (dev));return 0 ; }
@@ -377,7 +377,7 @@ static int dm_test_video_truetype_bs(struct unit_test_state *uts)ut_assertok (uclass_get_device (UCLASS_VIDEO ,0 , &dev));ut_assertok (uclass_get_device (UCLASS_VIDEO_CONSOLE ,0 , &con));vidconsole_put_string (con, test_string); -ut_asserteq (34871 ,compress_frame_buffer (dev)); +ut_asserteq (29018 ,compress_frame_buffer (dev));return 0 ; }
Signature · 1 line
2.17.1
PATCH 1/1 dm: video: fix test failures with enabled default TrueType font
Quoted 8 lines · Anatolij Gustschin
With enabled default Nimbus font dm_test_video_truetype* tests fail. Update expected expressions to fix them.
Signed-off-by Anatolij Gustschin <[email protected]>--- test/dm/video.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Reviewed-by Simon Glass <[email protected]>
Thanks, I didn't even think of that as I thought it was a choice! Perhaps I shold have used the existing default.
Regards,
Simon
PATCH 1/1 dm: video: fix test failures with enabled default TrueType font
In reply to Anatolij GustschinQuoted 7 lines · On Sat, 29 Dec 2018 01:09:19 +0100 Anatolij Gustschin agust at denx.de wrote:
With enabled default Nimbus font dm_test_video_truetype* tests fail. Update expected expressions to fix them.
Signed-off-by Anatolij Gustschin <[email protected]>--- test/dm/video.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Applied to u-boot-video/master, thanks!
--
Anatolij