Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
52fcae99
Commit
52fcae99
authored
Jul 02, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Jul 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetmib1: Fix test failures on some systems.
parent
d659e63d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
12 deletions
+17
-12
main.c
dlls/inetmib1/tests/main.c
+17
-12
No files found.
dlls/inetmib1/tests/main.c
View file @
52fcae99
...
@@ -157,7 +157,7 @@ static void testQuery(void)
...
@@ -157,7 +157,7 @@ static void testQuery(void)
SnmpUtilOidCpy
(
&
vars2
[
2
].
name
,
&
vars
[
2
].
name
);
SnmpUtilOidCpy
(
&
vars2
[
2
].
name
,
&
vars
[
2
].
name
);
list
.
list
=
vars2
;
list
.
list
=
vars2
;
moreData
=
TRUE
;
moreData
=
TRUE
;
entry
=
1
;
entry
=
0
;
do
{
do
{
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
error
=
0xdeadbeef
;
error
=
0xdeadbeef
;
...
@@ -182,28 +182,33 @@ static void testQuery(void)
...
@@ -182,28 +182,33 @@ static void testQuery(void)
moreData
=
FALSE
;
moreData
=
FALSE
;
if
(
moreData
)
if
(
moreData
)
{
{
UINT
lastID
;
/* Check the OIDs. For these types of values (display strings and
/* Check the OIDs. For these types of values (display strings and
* integers) they increase by 1 for each element of the table.
* integers) they should increase by 1 for each element of the table
* according to RFC 1158. Windows sometimes has a weird value in the
* table, so allow any value as long as it's greater than the previous
* value on Windows.
*/
*/
ok
(
vars2
[
0
].
name
.
idLength
==
vars
[
0
].
name
.
idLength
+
1
,
ok
(
vars2
[
0
].
name
.
idLength
==
vars
[
0
].
name
.
idLength
+
1
,
"expected length %d, got %d
\n
"
,
vars
[
0
].
name
.
idLength
+
1
,
"expected length %d, got %d
\n
"
,
vars
[
0
].
name
.
idLength
+
1
,
vars2
[
0
].
name
.
idLength
);
vars2
[
0
].
name
.
idLength
);
ok
(
vars2
[
0
].
name
.
ids
[
vars2
[
0
].
name
.
idLength
-
1
]
==
entry
,
lastID
=
vars2
[
0
].
name
.
ids
[
vars2
[
0
].
name
.
idLength
-
1
];
"expected %d, got %d
\n
"
,
entry
,
ok
(
lastID
==
entry
+
1
||
broken
(
lastID
>
entry
)
,
vars2
[
0
].
name
.
ids
[
vars2
[
0
].
name
.
idLength
-
1
]
);
"expected %d, got %d
\n
"
,
entry
+
1
,
lastID
);
ok
(
vars2
[
1
].
name
.
idLength
==
vars
[
1
].
name
.
idLength
+
1
,
ok
(
vars2
[
1
].
name
.
idLength
==
vars
[
1
].
name
.
idLength
+
1
,
"expected length %d, got %d
\n
"
,
vars
[
1
].
name
.
idLength
+
1
,
"expected length %d, got %d
\n
"
,
vars
[
1
].
name
.
idLength
+
1
,
vars2
[
1
].
name
.
idLength
);
vars2
[
1
].
name
.
idLength
);
ok
(
vars2
[
1
].
name
.
ids
[
vars2
[
1
].
name
.
idLength
-
1
]
==
entry
,
lastID
=
vars2
[
1
].
name
.
ids
[
vars2
[
1
].
name
.
idLength
-
1
];
"expected %d, got %d
\n
"
,
entry
,
ok
(
lastID
==
entry
+
1
||
broken
(
lastID
>
entry
)
,
vars2
[
1
].
name
.
ids
[
vars2
[
1
].
name
.
idLength
-
1
]
);
"expected %d, got %d
\n
"
,
entry
+
1
,
lastID
);
ok
(
vars2
[
2
].
name
.
idLength
==
vars
[
2
].
name
.
idLength
+
1
,
ok
(
vars2
[
2
].
name
.
idLength
==
vars
[
2
].
name
.
idLength
+
1
,
"expected length %d, got %d
\n
"
,
vars
[
2
].
name
.
idLength
+
1
,
"expected length %d, got %d
\n
"
,
vars
[
2
].
name
.
idLength
+
1
,
vars2
[
2
].
name
.
idLength
);
vars2
[
2
].
name
.
idLength
);
ok
(
vars2
[
2
].
name
.
ids
[
vars2
[
2
].
name
.
idLength
-
1
]
==
entry
,
lastID
=
vars2
[
2
].
name
.
ids
[
vars2
[
2
].
name
.
idLength
-
1
];
"expected %d, got %d
\n
"
,
entry
,
ok
(
lastID
==
entry
+
1
||
broken
(
lastID
>
entry
)
,
vars2
[
2
].
name
.
ids
[
vars2
[
2
].
name
.
idLength
-
1
]
);
"expected %d, got %d
\n
"
,
entry
+
1
,
lastID
);
++
entry
;
entry
=
lastID
;
/* Check the types while we're at it */
/* Check the types while we're at it */
ok
(
vars2
[
0
].
value
.
asnType
==
ASN_OCTETSTRING
,
ok
(
vars2
[
0
].
value
.
asnType
==
ASN_OCTETSTRING
,
"expected ASN_OCTETSTRING, got %02x
\n
"
,
vars2
[
0
].
value
.
asnType
);
"expected ASN_OCTETSTRING, got %02x
\n
"
,
vars2
[
0
].
value
.
asnType
);
...
...
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