diff options
author | Gabor Kiss-Vamosi <kisvegabor@gmail.com> | 2021-06-23 15:51:12 +0200 |
---|---|---|
committer | Gabor Kiss-Vamosi <kisvegabor@gmail.com> | 2021-06-23 15:51:12 +0200 |
commit | b765643e4902de359e88fdf6d314e9afdb2daa9a (patch) | |
tree | b2ccbb3e4feac721a86b02eb64ff2e4d423b0fe2 /tests/unity/unity_support.c | |
parent | 3672f873328b4471ac9d5d23696f7bc99a87bc43 (diff) | |
download | lvgl-b765643e4902de359e88fdf6d314e9afdb2daa9a.tar.gz lvgl-b765643e4902de359e88fdf6d314e9afdb2daa9a.zip |
tests add README
Diffstat (limited to 'tests/unity/unity_support.c')
-rw-r--r-- | tests/unity/unity_support.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/unity/unity_support.c b/tests/unity/unity_support.c index eab620901..cceefba14 100644 --- a/tests/unity/unity_support.c +++ b/tests/unity/unity_support.c @@ -117,9 +117,9 @@ bool lv_test_assert_img_eq(const char * fn_ref) memcpy(&act_px, ptr_act, 3); TEST_PRINTF("Diff in %s at (%d;%d), %x instead of %x)", fn_ref, x, y, act_px, ref_px); - FILE * f = fopen("../image_err.h", "w"); + FILE * f = fopen("../test_screenshot_error.h", "w"); - fprintf(f, "static const uint32_t img_data[] = {\n"); + fprintf(f, "static const uint32_t test_screenshot_error_data[] = {\n"); i_buf = 0; for (y = 0; y < 480; y++) { @@ -134,17 +134,17 @@ bool lv_test_assert_img_eq(const char * fn_ref) } fprintf(f, "};\n\n"); - fprintf(f, "static lv_img_dsc_t dsc = { \n" + fprintf(f, "static lv_img_dsc_t test_screenshot_error_dsc = { \n" " .header.w = 800,\n" " .header.h = 480,\n" " .header.always_zero = 0,\n" " .header.cf = LV_IMG_CF_TRUE_COLOR,\n" " .data_size = 800 * 480 * 4,\n" - " .data = img_data};\n\n" - "static inline void show_test_img_error(void)\n" + " .data = test_screenshot_error_data};\n\n" + "static inline void test_screenshot_error_show(void)\n" "{\n" " lv_obj_t * img = lv_img_create(lv_scr_act());\n" - " lv_img_set_src(img, &dsc);\n" + " lv_img_set_src(img, &test_screenshot_error_dsc);\n" "}\n"); fclose(f); |