webservices/tests: Fix resource leak.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5c06eba58e
commit
5485189eb0
|
@ -976,6 +976,7 @@ START_TEST(channel)
|
|||
thread = start_listener( &info );
|
||||
test_message_read_write( &info );
|
||||
WaitForSingleObject( thread, 3000 );
|
||||
CloseHandle(thread);
|
||||
|
||||
info.type = WS_CHANNEL_TYPE_DUPLEX_SESSION;
|
||||
info.binding = WS_TCP_CHANNEL_BINDING;
|
||||
|
@ -984,6 +985,7 @@ START_TEST(channel)
|
|||
thread = start_listener( &info );
|
||||
test_duplex_session( &info );
|
||||
WaitForSingleObject( thread, 3000 );
|
||||
CloseHandle(thread);
|
||||
|
||||
info.type = WS_CHANNEL_TYPE_DUPLEX;
|
||||
info.binding = WS_UDP_CHANNEL_BINDING;
|
||||
|
@ -992,6 +994,7 @@ START_TEST(channel)
|
|||
thread = start_listener( &info );
|
||||
test_WsAcceptChannel( &info );
|
||||
WaitForSingleObject( thread, 3000 );
|
||||
CloseHandle(thread);
|
||||
|
||||
info.type = WS_CHANNEL_TYPE_DUPLEX_SESSION;
|
||||
info.binding = WS_TCP_CHANNEL_BINDING;
|
||||
|
@ -999,6 +1002,7 @@ START_TEST(channel)
|
|||
thread = start_listener( &info );
|
||||
test_WsAcceptChannel( &info );
|
||||
WaitForSingleObject( thread, 3000 );
|
||||
CloseHandle(thread);
|
||||
|
||||
if (firewall_enabled) set_firewall( APP_REMOVE );
|
||||
}
|
||||
|
|
|
@ -732,7 +732,11 @@ START_TEST(proxy)
|
|||
|
||||
ret = WaitForSingleObject( info.event, 3000 );
|
||||
ok(ret == WAIT_OBJECT_0, "failed to start test server %u\n", GetLastError());
|
||||
if (ret != WAIT_OBJECT_0) return;
|
||||
if (ret != WAIT_OBJECT_0)
|
||||
{
|
||||
CloseHandle(thread);
|
||||
return;
|
||||
}
|
||||
|
||||
test_WsSendMessage( info.port, &test1 );
|
||||
test_WsReceiveMessage( info.port );
|
||||
|
@ -741,4 +745,5 @@ START_TEST(proxy)
|
|||
|
||||
test_WsSendMessage( info.port, &quit );
|
||||
WaitForSingleObject( thread, 3000 );
|
||||
CloseHandle(thread);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue