Juan Lang : inetmib1: Fix some test failures on Win9x/NT4.

Alexandre Julliard julliard at winehq.org
Thu Oct 9 07:43:11 CDT 2008


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

Author: Juan Lang <juan.lang at gmail.com>
Date:   Wed Oct  8 15:22:59 2008 -0700

inetmib1: Fix some test failures on Win9x/NT4.

---

 dlls/inetmib1/tests/main.c |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/dlls/inetmib1/tests/main.c b/dlls/inetmib1/tests/main.c
index e00749f..efb0467 100644
--- a/dlls/inetmib1/tests/main.c
+++ b/dlls/inetmib1/tests/main.c
@@ -106,9 +106,14 @@ static void testQuery(void)
     index = 0xdeadbeef;
     ret = pQuery(SNMP_PDU_GET, &list, &error, &index);
     ok(ret, "SnmpExtensionQuery failed: %d\n", GetLastError());
-    ok(error == SNMP_ERRORSTATUS_NOERROR,
-        "expected SNMP_ERRORSTATUS_NOERROR, got %d\n", error);
-    ok(index == 0, "expected index 0, got %d\n", index);
+    ok(error == SNMP_ERRORSTATUS_NOERROR ||
+        error == ERROR_FILE_NOT_FOUND /* Win9x */,
+        "expected SNMP_ERRORSTATUS_NOERROR or ERROR_FILE_NOT_FOUND, got %d\n",
+        error);
+    if (error == SNMP_ERRORSTATUS_NOERROR)
+        ok(index == 0, "expected index 0, got %d\n", index);
+    else if (error == ERROR_FILE_NOT_FOUND)
+        ok(index == 1, "expected index 1, got %d\n", index);
     /* The OID isn't changed either: */
     ok(!strcmp("1.2.3.4", SnmpUtilOidToA(&vars[0].name)),
         "expected 1.2.3.4, got %s\n", SnmpUtilOidToA(&vars[0].name));




More information about the wine-cvs mailing list