diff options
Diffstat (limited to 'tests/unity/unity_support.c')
-rw-r--r-- | tests/unity/unity_support.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unity/unity_support.c b/tests/unity/unity_support.c index 2cb7222b9..935e14a25 100644 --- a/tests/unity/unity_support.c +++ b/tests/unity/unity_support.c @@ -103,11 +103,12 @@ bool lv_test_assert_image_eq(const char * fn_ref) uint32_t act_px = 0; memcpy(&ref_px, ptr_ref, 3); memcpy(&act_px, ptr_act, 3); - //printf("0xFF%06x, ", act_px); uint8_t act_swap[3] = {ptr_act[2], ptr_act[1], ptr_act[0]}; if(memcmp(act_swap, ptr_ref, 3) != 0) { + TEST_PRINTF("Error on x:%d, y:%d. Expected %X, Actual %X", x, y, ref_px, act_px); + fflush(stderr); err = true; break; } @@ -130,6 +131,7 @@ bool lv_test_assert_image_eq(const char * fn_ref) png_release(&p); + fflush(stdout); return !err; } |