On Mon, Aug 24, 2009 at 7:19 AM, Ge van Geldorpggeldorp@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.