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
b7c838bf
Commit
b7c838bf
authored
Aug 25, 2017
by
Hugh McMaster
Committed by
Alexandre Julliard
Aug 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reg/tests: Add some mixed key creation and deletion tests.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
60e771e6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
reg.c
programs/reg/tests/reg.c
+44
-0
No files found.
programs/reg/tests/reg.c
View file @
b7c838bf
...
...
@@ -1734,6 +1734,28 @@ static void test_import(void)
verify_key_nonexist
(
hkey
,
"Subkey3a"
);
verify_key_nonexist
(
hkey
,
"Subkey3b"
);
/* Test mixed key creation and deletion. We start by creating a subkey. */
test_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"
\\
Subkey4a]
\n\n
"
,
&
r
);
ok
(
r
==
REG_EXIT_SUCCESS
,
"got exit code %d, expected 0
\n
"
,
r
);
verify_key
(
hkey
,
"Subkey4a"
);
test_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n\n
"
"[-HKEY_CURRENT_USER
\\
"
KEY_BASE
"
\\
Subkey4a]
\n
"
"
\"
Wine46a
\"
=dword:12345678
\n\n
"
,
&
r
);
ok
(
r
==
REG_EXIT_SUCCESS
,
"got exit code %d, expected 0
\n
"
,
r
);
verify_key_nonexist
(
hkey
,
"Subkey4a"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine46a"
);
test_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n\n
"
"[HKEY_CURRENT_USERS
\\
"
KEY_BASE
"
\\
Subkey4b]
\n
"
"
\"
Wine46b
\"
=dword:12345678
\n\n
"
,
&
r
);
ok
(
r
==
REG_EXIT_SUCCESS
,
"got exit code %d, expected 0
\n
"
,
r
);
verify_key_nonexist
(
hkey
,
"Subkey4b"
);
verify_reg_nonexist
(
hkey
,
"Wine46b"
);
/* Test value deletion. We start by creating some registry values. */
test_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
...
...
@@ -3190,6 +3212,28 @@ static void test_unicode_import(void)
verify_key_nonexist
(
hkey
,
"Subkey3a"
);
verify_key_nonexist
(
hkey
,
"Subkey3b"
);
/* Test mixed key creation and deletion. We start by creating a subkey. */
test_import_wstr
(
"
\xef\xbb\xbf
Windows Registry Editor Version 5.00
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"
\\
Subkey4a]
\n\n
"
,
&
r
);
ok
(
r
==
REG_EXIT_SUCCESS
,
"got exit code %d, expected 0
\n
"
,
r
);
verify_key
(
hkey
,
"Subkey4a"
);
test_import_wstr
(
"
\xef\xbb\xbf
Windows Registry Editor Version 5.00
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n\n
"
"[-HKEY_CURRENT_USER
\\
"
KEY_BASE
"
\\
Subkey4a]
\n
"
"
\"
Wine46a
\"
=dword:12345678
\n\n
"
,
&
r
);
ok
(
r
==
REG_EXIT_SUCCESS
,
"got exit code %d, expected 0
\n
"
,
r
);
verify_key_nonexist
(
hkey
,
"Subkey4a"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine46a"
);
test_import_wstr
(
"
\xef\xbb\xbf
Windows Registry Editor Version 5.00
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n\n
"
"[HKEY_CURRENT_USERS
\\
"
KEY_BASE
"
\\
Subkey4b]
\n
"
"
\"
Wine46b
\"
=dword:12345678
\n\n
"
,
&
r
);
ok
(
r
==
REG_EXIT_SUCCESS
,
"got exit code %d, expected 0
\n
"
,
r
);
verify_key_nonexist
(
hkey
,
"Subkey4b"
);
verify_reg_nonexist
(
hkey
,
"Wine46b"
);
/* Test value deletion. We start by creating some registry values. */
test_import_wstr
(
"
\xef\xbb\xbf
Windows Registry Editor Version 5.00
\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