aboutsummaryrefslogtreecommitdiff
path: root/tests/unity/unity_support.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unity/unity_support.c')
-rw-r--r--tests/unity/unity_support.c12
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);