ci: fix compiling test_tcp_state.c; add to msvc project

This commit is contained in:
Simon Goldschmidt 2023-05-11 20:26:21 +02:00
parent 724cc173ca
commit 90c9a482a6
2 changed files with 8 additions and 0 deletions

View File

@ -97,6 +97,9 @@
<ClCompile Include="..\..\..\..\test\unit\ppp\test_pppos.c"> <ClCompile Include="..\..\..\..\test\unit\ppp\test_pppos.c">
<Filter>ppp</Filter> <Filter>ppp</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\..\..\test\unit\tcp\test_tcp_state.c">
<Filter>tcp</Filter>
</ClCompile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClInclude Include="..\..\..\..\test\unit\core\test_mem.h"> <ClInclude Include="..\..\..\..\test\unit\core\test_mem.h">
@ -158,5 +161,8 @@
<ClInclude Include="..\..\..\..\test\unit\ppp\test_pppos.h"> <ClInclude Include="..\..\..\..\test\unit\ppp\test_pppos.h">
<Filter>ppp</Filter> <Filter>ppp</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\..\..\..\test\unit\tcp\test_tcp_state.h">
<Filter>tcp</Filter>
</ClInclude>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -157,6 +157,7 @@ START_TEST(test_tcp_new_max_num_remove_TIME_WAIT)
struct tcp_pcb* pcb; struct tcp_pcb* pcb;
struct tcp_pcb* pcb_list[MEMP_NUM_TCP_PCB + 1]; struct tcp_pcb* pcb_list[MEMP_NUM_TCP_PCB + 1];
int i; int i;
LWIP_UNUSED_ARG(_i);
/* create a pcb in TIME_WAIT state */ /* create a pcb in TIME_WAIT state */
pcb = tcp_new(); pcb = tcp_new();
@ -196,6 +197,7 @@ START_TEST(test_tcp_connect_active_open)
err_t err; err_t err;
u16_t test_port = 1234; u16_t test_port = 1234;
u32_t seqno = 0; u32_t seqno = 0;
LWIP_UNUSED_ARG(_i);
/* create and initialize the pcb */ /* create and initialize the pcb */
tcp_ticks = SEQNO1 - ISS; tcp_ticks = SEQNO1 - ISS;