ci make sure LVGL assertions cause tests to fail
This commit is contained in:
@@ -20,6 +20,9 @@ extern "C" {
|
|||||||
* DEFINES
|
* DEFINES
|
||||||
*********************/
|
*********************/
|
||||||
|
|
||||||
|
void lv_test_assert_fail(void);
|
||||||
|
#define LV_ASSERT_HANDLER lv_test_assert_fail();
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* TYPEDEFS
|
* TYPEDEFS
|
||||||
**********************/
|
**********************/
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include "../unity/unity.h"
|
||||||
|
|
||||||
#define HOR_RES 800
|
#define HOR_RES 800
|
||||||
#define VER_RES 480
|
#define VER_RES 480
|
||||||
@@ -91,4 +92,9 @@ uint32_t custom_tick_get(void)
|
|||||||
return time_ms;
|
return time_ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void lv_test_assert_fail(void)
|
||||||
|
{
|
||||||
|
TEST_FAIL();
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user