Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
f893387d
Commit
f893387d
authored
May 04, 2009
by
Juan Lang
Committed by
Alexandre Julliard
May 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetmib1/tests: Trace the SNMP error code and index rather than GetLastError on failure.
parent
00160719
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
main.c
dlls/inetmib1/tests/main.c
+9
-9
No files found.
dlls/inetmib1/tests/main.c
View file @
f893387d
...
...
@@ -88,7 +88,7 @@ static void testQuery(void)
error
=
0xdeadbeef
;
index
=
0xdeadbeef
;
ret
=
pQuery
(
SNMP_PDU_GET
,
&
list
,
&
error
,
&
index
);
ok
(
ret
,
"SnmpExtensionQuery failed: %d
\n
"
,
GetLastError
()
);
ok
(
ret
,
"SnmpExtensionQuery failed: %d
, %d
\n
"
,
error
,
index
);
ok
(
error
==
SNMP_ERRORSTATUS_NOERROR
,
"expected SNMP_ERRORSTATUS_NOERROR, got %d
\n
"
,
error
);
ok
(
index
==
0
,
"expected index 0, got %d
\n
"
,
index
);
...
...
@@ -105,7 +105,7 @@ static void testQuery(void)
error
=
0xdeadbeef
;
index
=
0xdeadbeef
;
ret
=
pQuery
(
SNMP_PDU_GET
,
&
list
,
&
error
,
&
index
);
ok
(
ret
,
"SnmpExtensionQuery failed: %d
\n
"
,
GetLastError
()
);
ok
(
ret
,
"SnmpExtensionQuery failed: %d
, %d
\n
"
,
error
,
index
);
ok
(
error
==
SNMP_ERRORSTATUS_NOERROR
||
error
==
ERROR_FILE_NOT_FOUND
/* Win9x */
,
"expected SNMP_ERRORSTATUS_NOERROR or ERROR_FILE_NOT_FOUND, got %d
\n
"
,
...
...
@@ -125,7 +125,7 @@ static void testQuery(void)
error
=
0xdeadbeef
;
index
=
0xdeadbeef
;
ret
=
pQuery
(
SNMP_PDU_GET
,
&
list
,
&
error
,
&
index
);
ok
(
ret
,
"SnmpExtensionQuery failed: %d
\n
"
,
GetLastError
()
);
ok
(
ret
,
"SnmpExtensionQuery failed: %d
, %d
\n
"
,
error
,
index
);
ok
(
error
==
SNMP_ERRORSTATUS_NOSUCHNAME
,
"expected SNMP_ERRORSTATUS_NOSUCHNAME, got %d
\n
"
,
error
);
/* The index is 1-based rather than 0-based */
...
...
@@ -147,7 +147,7 @@ static void testQuery(void)
error
=
0xdeadbeef
;
index
=
0xdeadbeef
;
ret
=
pQuery
(
SNMP_PDU_GET
,
&
list
,
&
error
,
&
index
);
ok
(
ret
,
"SnmpExtensionQuery failed: %d
\n
"
,
GetLastError
()
);
ok
(
ret
,
"SnmpExtensionQuery failed: %d
, %d
\n
"
,
error
,
index
);
ok
(
error
==
SNMP_ERRORSTATUS_NOSUCHNAME
,
"expected SNMP_ERRORSTATUS_NOSUCHNAME, got %d
\n
"
,
error
);
ok
(
index
==
1
,
"expected index 1, got %d
\n
"
,
index
);
...
...
@@ -169,7 +169,7 @@ static void testQuery(void)
error
=
0xdeadbeef
;
index
=
0xdeadbeef
;
ret
=
pQuery
(
SNMP_PDU_GETNEXT
,
&
list
,
&
error
,
&
index
);
ok
(
ret
,
"SnmpExtensionQuery failed: %d
\n
"
,
GetLastError
()
);
ok
(
ret
,
"SnmpExtensionQuery failed: %d
, %d
\n
"
,
error
,
index
);
ok
(
error
==
SNMP_ERRORSTATUS_NOERROR
,
"expected SNMP_ERRORSTATUS_NOERROR, got %d
\n
"
,
error
);
ok
(
index
==
0
,
"expected index 0, got %d
\n
"
,
index
);
...
...
@@ -252,7 +252,7 @@ static void testQuery(void)
moreData
=
TRUE
;
noChange
=
FALSE
;
ret
=
pQuery
(
SNMP_PDU_GETNEXT
,
&
list
,
&
error
,
&
index
);
ok
(
ret
,
"SnmpExtensionQuery failed: %d
\n
"
,
GetLastError
()
);
ok
(
ret
,
"SnmpExtensionQuery failed: %d
, %d
\n
"
,
error
,
index
);
ok
(
error
==
SNMP_ERRORSTATUS_NOERROR
,
"expected SNMP_ERRORSTATUS_NOERROR, got %d
\n
"
,
error
);
ok
(
index
==
0
,
"expected index 0, got %d
\n
"
,
index
);
...
...
@@ -274,7 +274,7 @@ static void testQuery(void)
moreData
=
TRUE
;
do
{
ret
=
pQuery
(
SNMP_PDU_GETNEXT
,
&
list
,
&
error
,
&
index
);
ok
(
ret
,
"SnmpExtensionQuery failed: %d
\n
"
,
GetLastError
()
);
ok
(
ret
,
"SnmpExtensionQuery failed: %d
, %d
\n
"
,
error
,
index
);
ok
(
error
==
SNMP_ERRORSTATUS_NOERROR
,
"expected SNMP_ERRORSTATUS_NOERROR, got %d
\n
"
,
error
);
ok
(
index
==
0
,
"expected index 0, got %d
\n
"
,
index
);
...
...
@@ -340,7 +340,7 @@ static void testQuery(void)
noChange
=
FALSE
;
do
{
ret
=
pQuery
(
SNMP_PDU_GETNEXT
,
&
list
,
&
error
,
&
index
);
ok
(
ret
,
"SnmpExtensionQuery failed: %d
\n
"
,
GetLastError
()
);
ok
(
ret
,
"SnmpExtensionQuery failed: %d
, %d
\n
"
,
error
,
index
);
ok
(
error
==
SNMP_ERRORSTATUS_NOERROR
,
"expected SNMP_ERRORSTATUS_NOERROR, got %d
\n
"
,
error
);
ok
(
index
==
0
,
"expected index 0, got %d
\n
"
,
index
);
...
...
@@ -406,7 +406,7 @@ static void testQuery(void)
noChange
=
FALSE
;
do
{
ret
=
pQuery
(
SNMP_PDU_GETNEXT
,
&
list
,
&
error
,
&
index
);
ok
(
ret
,
"SnmpExtensionQuery failed: %d
\n
"
,
GetLastError
()
);
ok
(
ret
,
"SnmpExtensionQuery failed: %d
, %d
\n
"
,
error
,
index
);
/* FIXME: error and index aren't checked here because the UDP table is
* the last OID currently supported by Wine, so the last GetNext fails.
* todo_wine is also not effective because it will succeed for all but
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment