File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ CFLAGS+=-g -ggdb
2929CFLAGS+ =-fprofile-arcs
3030CFLAGS+ =-ftest-coverage
3131CFLAGS+ =--coverage
32+ CFLAGS+ =-DUNIT_TEST_COVERAGE
3233CFLAGS+ =-DUNIT_TEST -DWOLFSSL_USER_SETTINGS
3334LDFLAGS+ =-fprofile-arcs
3435LDFLAGS+ =-ftest-coverage
Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ START_TEST(test_memcpy_memmove)
329329}
330330END_TEST
331331
332- #if defined(__linux__ ) && (SIZE_MAX > INT_MAX ) && !defined(__GCOV__ )
332+ #if defined(__linux__ ) && (SIZE_MAX > INT_MAX ) && !defined(UNIT_TEST_COVERAGE )
333333START_TEST (test_memmove_large_overlap_length )
334334{
335335 size_t n = (size_t )INT_MAX + 2U ;
@@ -473,7 +473,9 @@ Suite *string_suite(void)
473473 tcase_add_test (tcase_misc , test_strncmp );
474474 tcase_add_test (tcase_misc , test_memcpy_memmove );
475475#if defined(__linux__ ) && (SIZE_MAX > INT_MAX )
476+ #if !defined(UNIT_TEST_COVERAGE )
476477 tcase_add_test (tcase_misc , test_memmove_large_overlap_length );
478+ #endif
477479#endif
478480 tcase_add_test (tcase_misc , test_memcpy_aligned_buffers );
479481 tcase_add_test (tcase_misc , test_uart_writenum_basic );
You can’t perform that action at this time.
0 commit comments