Paul Vriens : spoolss/tests: Fix a failure on Vista/W2K8.

Alexandre Julliard julliard at winehq.org
Fri Oct 10 08:06:34 CDT 2008


Module: wine
Branch: master
Commit: a8c44d9aaffdd54363700b844ee615f38712aa12
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a8c44d9aaffdd54363700b844ee615f38712aa12

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Thu Oct  9 21:25:51 2008 +0200

spoolss/tests: Fix a failure on Vista/W2K8.

---

 dlls/spoolss/tests/spoolss.c |   35 ++++++++++++++++++++++++++++++++---
 1 files changed, 32 insertions(+), 3 deletions(-)

diff --git a/dlls/spoolss/tests/spoolss.c b/dlls/spoolss/tests/spoolss.c
index d65f101..6a2711e 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: <hostname> (this is the same as the computername)
-      entry_#2: <ip-address> (string with the ip-address of <hostname>)
+      1 entry per Ethernet adapter : <ip-address> (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: <hostname> (this is the same as the computername)
+      1 entry per Ethernet adapter : <ip-address> (string with a IPv4 ip-address)
+      entry_#x: "::1"
+
+      IPv6 partly disabled (lan interfaces, connections):
+      entry_#0: "" (empty String)
+      entry_#1: <hostname> (this is the same as the computername)
+      entry_#2: "::1"
+      1 entry per Ethernet adapter : <ip-address> (string with a IPv4 ip-address)
+
+      IPv6 fully enabled but not on all lan interfaces:
+      entry_#0: "" (empty String)
+      entry_#1: <hostname> (this is the same as the computername)
+      1 entry per IPv6 enabled Ethernet adapter : <ip-address> (string with a Link-local IPv6 ip-address)
+      1 entry per IPv4 enabled Ethernet adapter : <ip-address> (string with a IPv4 ip-address)
+
+      IPv6 fully enabled on all lan interfaces:
+      entry_#0: "" (empty String)
+      entry_#1: <hostname> (this is the same as the computername)
+      1 entry per IPv6 enabled Ethernet adapter : <ip-address> (string with a Link-local IPv6 ip-address)
+      entry_#x: <ip-address> Tunnel adapter (string with a Link-local IPv6 ip-address)
+      1 entry per IPv4 enabled Ethernet adapter : <ip-address> (string with a IPv4 ip-address)
+      entry_#y: <ip-address> 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);




More information about the wine-cvs mailing list