netapi32/tests: Fix tests on Win7

Austin English austinenglish at gmail.com
Mon Aug 24 07:26:02 CDT 2009


On Mon, Aug 24, 2009 at 7:19 AM, Ge van Geldorp<ggeldorp at vmware.com> wrote:
> Win7 no longer exports NetpGetComputerName() and returns a weird value for
> totalEntries in the NetWkstaTransportEnum() call
>
> Changelog:
>  netapi32/tests: Fix tests on Win7
> ---
>  dlls/netapi32/tests/wksta.c |    8 ++++++--
>  1 files changed, 6 insertions(+), 2 deletions(-)

@@ -173,7 +173,8 @@ static void run_wkstatransportenum_tests(void)

         ok(bufPtr != NULL, "got data back\n");
         ok(entriesRead > 0, "read at least one transport\n");
-        ok(totalEntries > 0, "at least one transport\n");
+        ok(totalEntries > 0 || broken(totalEntries == 0) /* Win7 */,

Should probably be win_skip rather than broken, so that a similar
failure on wine isn't ignored.

-- 
-Austin



More information about the wine-devel mailing list