https://git.reactos.org/?p=reactos.git;a=commitdiff;h=619ff7c4291c9d562d817a86bf221c8d391ffd6b
commit 619ff7c4291c9d562d817a86bf221c8d391ffd6b Author: Doug Lyons <dougly...@douglyons.com> AuthorDate: Thu Jan 18 05:11:25 2024 -0600 Commit: GitHub <nore...@github.com> CommitDate: Thu Jan 18 12:11:25 2024 +0100 [WS2_32_WINETEST] Patch ws2_32:sock wine test to run on ReactOS (#5609) Disable ReactOS specific tests which are not implemented yet. ROSTESTS-385 - Bypass part of test that uses MEM_WRITE_WATCH. - Bypass three tests that are unimplemented: 1) WSPAcceptEx, 2) WSPConnectEx, and 3) WSPDisconnectEx --- modules/rostests/winetests/ws2_32/sock.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/modules/rostests/winetests/ws2_32/sock.c b/modules/rostests/winetests/ws2_32/sock.c index 48e08eee6f1..74ea920dd00 100644 --- a/modules/rostests/winetests/ws2_32/sock.c +++ b/modules/rostests/winetests/ws2_32/sock.c @@ -7010,6 +7010,15 @@ static void test_write_watch(void) base = VirtualAlloc( 0, size, MEM_RESERVE | MEM_COMMIT | MEM_WRITE_WATCH, PAGE_READWRITE ); ok( base != NULL, "VirtualAlloc failed %u\n", GetLastError() ); +#ifdef __REACTOS__ + if (!base) + { + skip("VirtualAlloc(MEM_WRITE_WATCH) is not supported yet on ReactOS\n"); + skip("Skipping tests due to hang. See ROSTESTS-385\n"); + return; + } +#endif + memset( base, 0, size ); count = 64; ret = pGetWriteWatch( WRITE_WATCH_FLAG_RESET, base, size, results, &count, &pagesize ); @@ -11620,9 +11629,22 @@ START_TEST( sock ) test_GetAddrInfoW(); test_GetAddrInfoExW(); test_getaddrinfo(); + +#ifdef __REACTOS__ + if (!winetest_interactive) + { + skip("WSPAcceptEx(), WSPConnectEx() and WSPDisconnectEx() are UNIMPLEMENTED on ReactOS\n"); + skip("Skipping tests due to hang. See ROSTESTS-385\n"); + } + else + { +#endif test_AcceptEx(); test_ConnectEx(); test_DisconnectEx(); +#ifdef __REACTOS__ + } +#endif test_sioRoutingInterfaceQuery(); test_sioAddressListChange();