Skip to content

Commit ffce5ab

Browse files
committed
try to fix unit test compiling with clang
1 parent e558963 commit ffce5ab

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

test/unit/tcp/test_tcp.c

+6-8
Original file line numberDiff line numberDiff line change
@@ -534,15 +534,13 @@ START_TEST(test_tcp_fast_retx_recover)
534534
EXPECT_RET(txcounters.num_tx_calls == 0);
535535
EXPECT_RET(txcounters.num_tx_bytes == 0);
536536
memset(&txcounters, 0, sizeof(txcounters));
537+
538+
do
537539
{
538-
int i = 0;
539-
do
540-
{
541-
err = tcp_write(pcb, data6, TCP_MSS, TCP_WRITE_FLAG_COPY);
542-
i++;
543-
}while(err == ERR_OK);
544-
EXPECT_RET(err != ERR_OK);
545-
}
540+
err = tcp_write(pcb, data6, TCP_MSS, TCP_WRITE_FLAG_COPY);
541+
}while(err == ERR_OK);
542+
EXPECT_RET(err != ERR_OK);
543+
546544
err = tcp_output(pcb);
547545
EXPECT_RET(err == ERR_OK);
548546
/*EXPECT_RET(txcounters.num_tx_calls == 0);

0 commit comments

Comments
 (0)