File 0008-ws2_32-tests-In-tests-for-AF_UNIX-sockets-print-actu.patch of Package wine
From 988e54d57ca5e3456f5346eb0b0b1795086dbd7d 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 8/9] 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 25a9217335a..38a8092a91e 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -14539,6 +14539,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.50.0