inetmib1: Fix some test failures on Win9x/NT4.
This commit is contained in:
parent
04a65b3cb8
commit
52e64b155e
|
@ -106,9 +106,14 @@ static void testQuery(void)
|
||||||
index = 0xdeadbeef;
|
index = 0xdeadbeef;
|
||||||
ret = pQuery(SNMP_PDU_GET, &list, &error, &index);
|
ret = pQuery(SNMP_PDU_GET, &list, &error, &index);
|
||||||
ok(ret, "SnmpExtensionQuery failed: %d\n", GetLastError());
|
ok(ret, "SnmpExtensionQuery failed: %d\n", GetLastError());
|
||||||
ok(error == SNMP_ERRORSTATUS_NOERROR,
|
ok(error == SNMP_ERRORSTATUS_NOERROR ||
|
||||||
"expected SNMP_ERRORSTATUS_NOERROR, got %d\n", error);
|
error == ERROR_FILE_NOT_FOUND /* Win9x */,
|
||||||
ok(index == 0, "expected index 0, got %d\n", index);
|
"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: */
|
/* The OID isn't changed either: */
|
||||||
ok(!strcmp("1.2.3.4", SnmpUtilOidToA(&vars[0].name)),
|
ok(!strcmp("1.2.3.4", SnmpUtilOidToA(&vars[0].name)),
|
||||||
"expected 1.2.3.4, got %s\n", SnmpUtilOidToA(&vars[0].name));
|
"expected 1.2.3.4, got %s\n", SnmpUtilOidToA(&vars[0].name));
|
||||||
|
|
Loading…
Reference in New Issue