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
73af2479
Commit
73af2479
authored
Jun 26, 2017
by
Hugh McMaster
Committed by
Alexandre Julliard
Jun 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit/tests: Use the verify_key*() functions where possible.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f0e21863
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
regedit.c
programs/regedit/tests/regedit.c
+3
-5
No files found.
programs/regedit/tests/regedit.c
View file @
73af2479
...
...
@@ -550,7 +550,7 @@ static void test_basic_import_31(void)
static
void
test_invalid_import
(
void
)
{
LONG
lr
;
HKEY
hkey
,
subkey
;
HKEY
hkey
;
lr
=
RegDeleteKeyA
(
HKEY_CURRENT_USER
,
KEY_BASE
);
ok
(
lr
==
ERROR_SUCCESS
||
lr
==
ERROR_FILE_NOT_FOUND
,
"RegDeleteKeyA failed: %d
\n
"
,
lr
);
...
...
@@ -725,14 +725,12 @@ static void test_invalid_import(void)
exec_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"
\\\n
"
"Subkey1]
\n
"
);
lr
=
RegOpenKeyExA
(
hkey
,
"Subkey1"
,
0
,
KEY_READ
,
&
subkey
);
ok
(
lr
==
ERROR_FILE_NOT_FOUND
,
"got %d, expected 2
\n
"
,
lr
);
verify_key_nonexist
(
hkey
,
"Subkey1"
);
exec_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"
\n
"
"
\\
Subkey2]
\n
"
);
lr
=
RegOpenKeyExA
(
hkey
,
"Subkey2"
,
0
,
KEY_READ
,
&
subkey
);
ok
(
lr
==
ERROR_FILE_NOT_FOUND
,
"got %d, expected 2
\n
"
,
lr
);
verify_key_nonexist
(
hkey
,
"Subkey2"
);
exec_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
...
...
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