ci make sure LVGL assertions cause tests to fail

This commit is contained in:
embeddedt
2022-05-04 09:15:30 -04:00
parent 003f18f86c
commit b83c5aa9bc
2 changed files with 9 additions and 0 deletions

View File

@@ -20,6 +20,9 @@ extern "C" {
* DEFINES
*********************/
void lv_test_assert_fail(void);
#define LV_ASSERT_HANDLER lv_test_assert_fail();
/**********************
* TYPEDEFS
**********************/

View File

@@ -5,6 +5,7 @@
#include <sys/time.h>
#include <stdio.h>
#include <stdlib.h>
#include "../unity/unity.h"
#define HOR_RES 800
#define VER_RES 480
@@ -91,4 +92,9 @@ uint32_t custom_tick_get(void)
return time_ms;
}
void lv_test_assert_fail(void)
{
TEST_FAIL();
}
#endif