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
486e66ed
Commit
486e66ed
authored
Feb 03, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi/tests: Don't compare the drive letter of expanded file paths.
parent
5d0f3aa3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
parser.c
dlls/setupapi/tests/parser.c
+10
-5
No files found.
dlls/setupapi/tests/parser.c
View file @
486e66ed
...
...
@@ -439,6 +439,11 @@ static void test_key_names(void)
!
strcmp
(
field
,
A1200
),
/* Vista, W2K8 */
"line %u: bad field %s/%s
\n
"
,
i
,
field
,
key_names
[
i
].
fields
[
index
]
);
else
/* don't compare drive letter of paths */
if
(
field
[
0
]
&&
field
[
1
]
==
':'
&&
field
[
2
]
==
'\\'
)
ok
(
!
strcmp
(
field
+
1
,
key_names
[
i
].
fields
[
index
]
+
1
),
"line %u: bad field %s/%s
\n
"
,
i
,
field
,
key_names
[
i
].
fields
[
index
]
);
else
ok
(
!
strcmp
(
field
,
key_names
[
i
].
fields
[
index
]
),
"line %u: bad field %s/%s
\n
"
,
i
,
field
,
key_names
[
i
].
fields
[
index
]
);
...
...
@@ -584,18 +589,18 @@ static void test_SetupGetIntField(void)
retb
=
SetupGetIntField
(
&
context
,
keys
[
i
].
index
,
&
intfield
);
if
(
keys
[
i
].
err
==
ERROR_SUCCESS
)
{
ok
(
retb
,
"
Expected success
\n
"
);
ok
(
retb
,
"
%u: Expected success
\n
"
,
i
);
ok
(
GetLastError
()
==
ERROR_SUCCESS
||
GetLastError
()
==
0xdeadbeef
/* win9x, NT4 */
,
"
Expected ERROR_SUCCESS or 0xdeadbeef, got %u
\n
"
,
GetLastError
()
);
"
%u: Expected ERROR_SUCCESS or 0xdeadbeef, got %u
\n
"
,
i
,
GetLastError
()
);
}
else
{
ok
(
!
retb
,
"
Expected failure
\n
"
);
ok
(
!
retb
,
"
%u: Expected failure
\n
"
,
i
);
ok
(
GetLastError
()
==
keys
[
i
].
err
,
"
Expected %d, got %u
\n
"
,
keys
[
i
].
err
,
GetLastError
()
);
"
%u: Expected %d, got %u
\n
"
,
i
,
keys
[
i
].
err
,
GetLastError
()
);
}
ok
(
intfield
==
keys
[
i
].
value
,
"
Expected %d, got %d
\n
"
,
keys
[
i
].
value
,
intfield
);
ok
(
intfield
==
keys
[
i
].
value
,
"
%u: Expected %d, got %d
\n
"
,
i
,
keys
[
i
].
value
,
intfield
);
SetupCloseInfFile
(
hinf
);
}
...
...
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