File 0006-ws2_32-tests-In-AF_UNIX-socket-tests-always-print-us.patch of Package wine

From b0fc4c36b61dce745f2c0b0bea1a9fc8db1d63d6 Mon Sep 17 00:00:00 2001
From: Ralf Habacker <ralf.habacker@freenet.de>
Date: Mon, 5 May 2025 12:29:11 +0200
Subject: [PATCH 6/8] ws2_32/tests: In AF_UNIX socket tests always print used
 path in case of errors

---
 dlls/ws2_32/tests/sock.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index 855e21d1053..ca6fce3e304 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -14630,7 +14630,7 @@ static void test_afunix(void)
     ret = bind(listener, (SOCKADDR *)&addr, 0);
     ok(ret && GetLastError() == WSAEFAULT, "Incorrect error: %lu\n", GetLastError());
     ret = bind(listener, (SOCKADDR *)&addr, 2);
-    ok(!ret, "Could not bind Unix socket: %lu\n", GetLastError());
+    ok(!ret, "Could not bind Unix socket to path '%s': %lu\n", addr.sun_path, GetLastError());
     ret = listen(listener, 1);
     ok(!ret, "Could not listen on Unix socket: %lu\n", GetLastError());
     closesocket(listener);
@@ -14639,7 +14639,7 @@ static void test_afunix(void)
     ok(listener != INVALID_SOCKET, "Could not create Unix socket: %lu\n",
         GetLastError());
     ret = bind(listener, (SOCKADDR *)&addr, 3);
-    ok(!ret, "Could not bind Unix socket: %lu\n", GetLastError());
+    ok(!ret, "Could not bind Unix socket to path '%s': %lu\n", addr.sun_path, GetLastError());
 
     memcpy(&truncatedAddr, &addr, 3);
     ret = getsockname(listener, (SOCKADDR *)&outAddr, &outAddrSize);
@@ -14654,7 +14654,7 @@ static void test_afunix(void)
         truncatedAddr.sun_path);
     closesocket(listener);
     ret = DeleteFileA(truncatedAddr.sun_path);
-    ok(ret, "DeleteFileA on socket file failed: %lu\n", GetLastError());
+    ok(ret, "DeleteFileA on socket file '%s' failed: %lu\n", truncatedAddr.sun_path, GetLastError());
     ok(GetFileAttributesA(truncatedAddr.sun_path) == INVALID_FILE_ATTRIBUTES &&
         GetLastError() == ERROR_FILE_NOT_FOUND,
         "Failed to delete socket file at path '%s'\n",
@@ -14665,7 +14665,7 @@ static void test_afunix(void)
         GetLastError());
 
     ret = bind(listener, (SOCKADDR *)&addr, sizeof(SOCKADDR_UN));
-    ok(!ret, "Could not bind Unix socket: %lu\n", GetLastError());
+    ok(!ret, "Could not bind Unix socket to path '%s': %lu\n", addr.sun_path, GetLastError());
 
     ret = listen(listener, 1);
     ok(!ret, "Could not listen on Unix socket: %lu\n", GetLastError());
-- 
2.51.0

openSUSE Build Service is sponsored by