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
057c92db
Commit
057c92db
authored
May 28, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
May 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi/tests: Remove leftovers from old tests.
parent
14848306
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
4 deletions
+30
-4
devinst.c
dlls/setupapi/tests/devinst.c
+30
-4
No files found.
dlls/setupapi/tests/devinst.c
View file @
057c92db
...
...
@@ -459,15 +459,41 @@ static void testCreateDeviceInfo(void)
pSetupDiDestroyDeviceInfoList
(
set
);
}
/* The bogus registry key shouldn't be there after this test. The only
* reasons this key would still be present:
*
* - We are running on Wine which has to be fixed
* - We have leftovers from old tests
*/
res
=
RegOpenKeyW
(
HKEY_LOCAL_MACHINE
,
bogus
,
&
key
);
todo_wine
ok
(
res
==
ERROR_FILE_NOT_FOUND
,
"Expected key to not exist
\n
"
);
/* FIXME: Remove when Wine is fixed */
if
(
res
==
ERROR_SUCCESS
)
{
/* Wine doesn't delete the information currently */
trace
(
"We are most likely on Wine
\n
"
);
RegDeleteKeyW
(
HKEY_LOCAL_MACHINE
,
bogus
);
DWORD
subkeys
;
/* Check if we have subkeys */
RegQueryInfoKey
(
key
,
NULL
,
NULL
,
NULL
,
&
subkeys
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
if
(
subkeys
>
0
)
{
int
i
;
/* Leftovers from old tests */
trace
(
"Going to remove %d devices
\n
"
,
subkeys
);
for
(
i
=
0
;
i
<
subkeys
;
i
++
)
{
BOOL
ret
;
ret
=
remove_device
();
ok
(
ret
,
"Expected a device to be removed
\n
"
);
}
}
else
{
/* Wine doesn't delete the bogus key itself currently */
trace
(
"We are most likely on Wine
\n
"
);
RegDeleteKeyW
(
HKEY_LOCAL_MACHINE
,
bogus
);
}
}
}
...
...
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