try to fix unit test compiling with clang

This commit is contained in:
Simon Goldschmidt 2025-03-03 21:45:32 +01:00
parent e55896319b
commit ffce5ab1c7

View File

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