File 0007-ws2_32-tests-In-tests-for-AF_UNIX-sockets-print-actu.patch of Package wine
From 8eff565c50013c8074f41b2aa7ecdf93929a96bf Mon Sep 17 00:00:00 2001
From: Ralf Habacker <ralf.habacker@freenet.de>
Date: Mon, 5 May 2025 12:29:53 +0200
Subject: [PATCH 7/8] ws2_32/tests: In tests for AF_UNIX sockets print actual
directory used
---
dlls/ws2_32/tests/sock.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index ca6fce3e304..f302687f65e 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -14616,6 +14616,11 @@ static void test_afunix(void)
ULONG one = 1;
int ret;
+ char currentDir[MAX_PATH+1];
+ ret = GetCurrentDirectoryA(sizeof(currentDir)-1, currentDir);
+ ok(ret, "Could not get current directory: %lu\n", GetLastError());
+ winetest_printf("current directory: '%s'\n", currentDir);
+
/* Test connection and send/recv */
listener = socket(AF_UNIX, SOCK_STREAM, 0);
if (listener == INVALID_SOCKET && GetLastError() == WSAEAFNOSUPPORT)
--
2.51.0