[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-devel] test_mdns.c troubles
From: |
Gisle Vanem |
Subject: |
Re: [lwip-devel] test_mdns.c troubles |
Date: |
Wed, 19 Dec 2018 18:09:49 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.3 |
and it's use in lwip_unittest.c:
_tcase_add_test((tc_core),(tests[i]).func,(tests[i]).name,0, 0, 0, 1);
(7 args). How did this happen? And how to solve it?
I patched lwip_check.h into this:
/* Modified function from check.h, supplying function name.
* First for < ver 0.10.
*/
#if (CHECK_MAJOR_VERSION <= 0) && (CHECK_MINOR_VERSION < 10)
#define tcase_add_named_test(tc,tf) \
_tcase_add_test((tc),(tf).func,(tf).name,0, 0, 0, 1)
#else
/*
* And for >= ver 0.10.
*/
#define tcase_add_named_test(tc,tf) \
_tcase_add_test((tc),(tf).func,(tf).name,0, 0, 1)
#endif
--
--gv