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
16b1ab0e
Commit
16b1ab0e
authored
7 years ago
by
Hugh McMaster
Committed by
Alexandre Julliard
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reg/tests: Test case sensitivity when creating and deleting registry keys.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b50d1fa3
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
reg.c
programs/reg/tests/reg.c
+30
-0
No files found.
programs/reg/tests/reg.c
View file @
16b1ab0e
...
...
@@ -1687,6 +1687,21 @@ static void test_import(void)
todo_wine
verify_key_nonexist
(
hkey
,
"Subkey2a"
);
todo_wine
verify_key_nonexist
(
hkey
,
"Subkey2b"
);
/* Test case sensitivity when creating and deleting registry keys. */
test_import_str
(
"REGEDIT4
\n\n
"
"[hkey_CURRENT_user
\\
"
KEY_BASE
"
\\
Subkey3a]
\n\n
"
"[HkEy_CuRrEnT_uSeR
\\
"
KEY_BASE
"
\\
SuBkEy3b]
\n\n
"
,
&
r
);
todo_wine
ok
(
r
==
REG_EXIT_SUCCESS
,
"got exit code %d, expected 0
\n
"
,
r
);
todo_wine
verify_key_exist
(
hkey
,
"Subkey3a"
);
todo_wine
verify_key_exist
(
hkey
,
"Subkey3b"
);
test_import_str
(
"REGEDIT4
\n\n
"
"[-HKEY_current_USER
\\
"
KEY_BASE
"
\\
sUBKEY3A]
\n\n
"
"[-hKeY_cUrReNt_UsEr
\\
"
KEY_BASE
"
\\
sUbKeY3B]
\n\n
"
,
&
r
);
todo_wine
ok
(
r
==
REG_EXIT_SUCCESS
,
"got exit code %d, expected 0
\n
"
,
r
);
todo_wine
verify_key_nonexist
(
hkey
,
"Subkey3a"
);
todo_wine
verify_key_nonexist
(
hkey
,
"Subkey3b"
);
/* Test value deletion. We start by creating some registry values. */
test_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
...
...
@@ -2575,6 +2590,21 @@ static void test_import(void)
todo_wine
verify_key_nonexist
(
hkey
,
"Subkey2a"
);
todo_wine
verify_key_nonexist
(
hkey
,
"Subkey2b"
);
/* Test case sensitivity when creating and deleting registry keys. */
test_import_wstr
(
"
\xef\xbb\xbf
Windows Registry Editor Version 5.00
\n\n
"
"[hkey_CURRENT_user
\\
"
KEY_BASE
"
\\
Subkey3a]
\n\n
"
"[HkEy_CuRrEnT_uSeR
\\
"
KEY_BASE
"
\\
SuBkEy3b]
\n\n
"
,
&
r
);
todo_wine
ok
(
r
==
REG_EXIT_SUCCESS
,
"got exit code %d, expected 0
\n
"
,
r
);
todo_wine
verify_key_exist
(
hkey
,
"Subkey3a"
);
todo_wine
verify_key_exist
(
hkey
,
"Subkey3b"
);
test_import_wstr
(
"
\xef\xbb\xbf
Windows Registry Editor Version 5.00
\n\n
"
"[-HKEY_current_USER
\\
"
KEY_BASE
"
\\
sUBKEY3A]
\n\n
"
"[-hKeY_cUrReNt_UsEr
\\
"
KEY_BASE
"
\\
sUbKeY3B]
\n\n
"
,
&
r
);
todo_wine
ok
(
r
==
REG_EXIT_SUCCESS
,
"got exit code %d, expected 0
\n
"
,
r
);
todo_wine
verify_key_nonexist
(
hkey
,
"Subkey3a"
);
todo_wine
verify_key_nonexist
(
hkey
,
"Subkey3b"
);
/* 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
"
...
...
This diff is collapsed.
Click to expand it.
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