ci make sure LVGL assertions cause tests to fail
This commit is contained in:
@@ -20,6 +20,9 @@ extern "C" {
|
||||
* DEFINES
|
||||
*********************/
|
||||
|
||||
void lv_test_assert_fail(void);
|
||||
#define LV_ASSERT_HANDLER lv_test_assert_fail();
|
||||
|
||||
/**********************
|
||||
* TYPEDEFS
|
||||
**********************/
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user