mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-03 21:14:40 +08:00
try to fix unit test compiling with clang
This commit is contained in:
parent
e55896319b
commit
ffce5ab1c7
@ -534,15 +534,13 @@ START_TEST(test_tcp_fast_retx_recover)
|
|||||||
EXPECT_RET(txcounters.num_tx_calls == 0);
|
EXPECT_RET(txcounters.num_tx_calls == 0);
|
||||||
EXPECT_RET(txcounters.num_tx_bytes == 0);
|
EXPECT_RET(txcounters.num_tx_bytes == 0);
|
||||||
memset(&txcounters, 0, sizeof(txcounters));
|
memset(&txcounters, 0, sizeof(txcounters));
|
||||||
|
|
||||||
|
do
|
||||||
{
|
{
|
||||||
int i = 0;
|
err = tcp_write(pcb, data6, TCP_MSS, TCP_WRITE_FLAG_COPY);
|
||||||
do
|
}while(err == ERR_OK);
|
||||||
{
|
EXPECT_RET(err != ERR_OK);
|
||||||
err = tcp_write(pcb, data6, TCP_MSS, TCP_WRITE_FLAG_COPY);
|
|
||||||
i++;
|
|
||||||
}while(err == ERR_OK);
|
|
||||||
EXPECT_RET(err != ERR_OK);
|
|
||||||
}
|
|
||||||
err = tcp_output(pcb);
|
err = tcp_output(pcb);
|
||||||
EXPECT_RET(err == ERR_OK);
|
EXPECT_RET(err == ERR_OK);
|
||||||
/*EXPECT_RET(txcounters.num_tx_calls == 0);
|
/*EXPECT_RET(txcounters.num_tx_calls == 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user