fix compiling/running tests on win32

- new files
- different warning settings
- all tests run in a single process (no fork)
This commit is contained in:
Simon Goldschmidt
2021-05-21 22:00:49 +02:00
parent a8e8ce4108
commit bb5ee3783a
6 changed files with 31 additions and 5 deletions

View File

@@ -18,10 +18,11 @@ dns_teardown(void)
START_TEST(test_dns_set_get_server)
{
int i;
int n;
LWIP_UNUSED_ARG(_i);
for (i = 0; i < 256; i++) {
for (n = 0; n < 256; n++) {
u8_t i = (u8_t)n;
ip_addr_t server;
/* Should return a zeroed address for any index */
fail_unless(dns_getserver(i));

View File

@@ -99,9 +99,11 @@ END_TEST
/** Call pbuf_copy on pbufs with chains of different sizes */
START_TEST(test_pbuf_copy_unmatched_chains)
{
int i, j;
uint16_t i, j;
err_t err;
struct pbuf *source, *dest, *p;
LWIP_UNUSED_ARG(_i);
source = NULL;
/* Build source pbuf from linked 16 byte parts,
* with payload bytes containing their offset */
@@ -109,7 +111,7 @@ START_TEST(test_pbuf_copy_unmatched_chains)
p = pbuf_alloc(PBUF_RAW, 16, PBUF_RAM);
fail_unless(p != NULL);
for (j = 0; j < p->len; j++) {
((unsigned char*)p->payload)[j] = (i << 4) | j;
((u8_t*)p->payload)[j] = (u8_t)((i << 4) | j);
}
if (source) {
pbuf_cat(source, p);