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

@@ -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);