From a8c44d9aaffdd54363700b844ee615f38712aa12 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Thu, 9 Oct 2008 21:25:51 +0200 Subject: [PATCH] spoolss/tests: Fix a failure on Vista/W2K8. --- dlls/spoolss/tests/spoolss.c | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/dlls/spoolss/tests/spoolss.c b/dlls/spoolss/tests/spoolss.c index d65f1012b16..6a2711e1752 100644 --- a/dlls/spoolss/tests/spoolss.c +++ b/dlls/spoolss/tests/spoolss.c @@ -120,13 +120,42 @@ static void test_BuildOtherNamesFromMachineName(void) SetLastError(0xdeadbeef); res = pBuildOtherNamesFromMachineName(&buffers, &numentries); - /* An array with 3 stringpointer is returned: + /* An array with a number of stringpointers is returned (minimum of 3): entry_#0: "" (empty String) entry_#1: (this is the same as the computername) - entry_#2: (string with the ip-address of ) + 1 entry per Ethernet adapter : (string with a IPv4 ip-address) + + As of Vista: + + IPv6 fully disabled (lan interfaces, connections, tunnel interfaces and loopback interfaces) + entry_#0: "" (empty String) + entry_#1: (this is the same as the computername) + 1 entry per Ethernet adapter : (string with a IPv4 ip-address) + entry_#x: "::1" + + IPv6 partly disabled (lan interfaces, connections): + entry_#0: "" (empty String) + entry_#1: (this is the same as the computername) + entry_#2: "::1" + 1 entry per Ethernet adapter : (string with a IPv4 ip-address) + + IPv6 fully enabled but not on all lan interfaces: + entry_#0: "" (empty String) + entry_#1: (this is the same as the computername) + 1 entry per IPv6 enabled Ethernet adapter : (string with a Link-local IPv6 ip-address) + 1 entry per IPv4 enabled Ethernet adapter : (string with a IPv4 ip-address) + + IPv6 fully enabled on all lan interfaces: + entry_#0: "" (empty String) + entry_#1: (this is the same as the computername) + 1 entry per IPv6 enabled Ethernet adapter : (string with a Link-local IPv6 ip-address) + entry_#x: Tunnel adapter (string with a Link-local IPv6 ip-address) + 1 entry per IPv4 enabled Ethernet adapter : (string with a IPv4 ip-address) + entry_#y: Tunnel adapter (string with a IPv6 ip-address) */ + todo_wine - ok( res && (buffers != NULL) && (numentries == 3) && (buffers[0] != NULL) && (buffers[0][0] == '\0'), + ok( res && (buffers != NULL) && (numentries >= 3) && (buffers[0] != NULL) && (buffers[0][0] == '\0'), "got %u with %u and %p,%u (%p:%d)\n", res, GetLastError(), buffers, numentries, ((numentries > 0) && buffers) ? buffers[0] : NULL, ((numentries > 0) && buffers && buffers[0]) ? lstrlenW(buffers[0]) : -1); -- 2.11.4.GIT