mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-06-28 17:03:41 +08:00
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:
@@ -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));
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user