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
5058fa70
Commit
5058fa70
authored
Jun 13, 2017
by
Hugh McMaster
Committed by
Alexandre Julliard
Jun 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit/tests: Test the accepted range of the hex-based data types.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
955766a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
regedit.c
programs/regedit/tests/regedit.c
+22
-0
No files found.
programs/regedit/tests/regedit.c
View file @
5058fa70
...
@@ -445,6 +445,28 @@ static void test_basic_import(void)
...
@@ -445,6 +445,28 @@ static void test_basic_import(void)
lr
=
RegDeleteKeyA
(
HKEY_CURRENT_USER
,
KEY_BASE
"
\\
Subkey/2"
);
lr
=
RegDeleteKeyA
(
HKEY_CURRENT_USER
,
KEY_BASE
"
\\
Subkey/2"
);
ok
(
lr
==
ERROR_SUCCESS
,
"got %d, expected 0
\n
"
,
lr
);
ok
(
lr
==
ERROR_SUCCESS
,
"got %d, expected 0
\n
"
,
lr
);
/* Test the accepted range of the hex-based data types */
exec_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Wine13a
\"
=hex(0):56,61,6c,75,65,00
\n
"
"
\"
Wine13b
\"
=hex(10):56,61,6c,75,65,00
\n
"
"
\"
Wine13c
\"
=hex(100):56,61,6c,75,65,00
\n
"
"
\"
Wine13d
\"
=hex(1000):56,61,6c,75,65,00
\n
"
"
\"
Wine13e
\"
=hex(7fff):56,61,6c,75,65,00
\n
"
"
\"
Wine13f
\"
=hex(ffff):56,61,6c,75,65,00
\n
"
"
\"
Wine13g
\"
=hex(7fffffff):56,61,6c,75,65,00
\n
"
"
\"
Wine13h
\"
=hex(ffffffff):56,61,6c,75,65,00
\n
"
"
\"
Wine13i
\"
=hex(100000000):56,61,6c,75,65,00
\n\n
"
);
verify_reg
(
hkey
,
"Wine13a"
,
REG_NONE
,
"Value"
,
6
,
0
);
verify_reg
(
hkey
,
"Wine13b"
,
0x10
,
"Value"
,
6
,
0
);
verify_reg
(
hkey
,
"Wine13c"
,
0x100
,
"Value"
,
6
,
0
);
verify_reg
(
hkey
,
"Wine13d"
,
0x1000
,
"Value"
,
6
,
0
);
verify_reg
(
hkey
,
"Wine13e"
,
0x7fff
,
"Value"
,
6
,
0
);
verify_reg
(
hkey
,
"Wine13f"
,
0xffff
,
"Value"
,
6
,
0
);
verify_reg
(
hkey
,
"Wine13g"
,
0x7fffffff
,
"Value"
,
6
,
0
);
verify_reg
(
hkey
,
"Wine13h"
,
0xffffffff
,
"Value"
,
6
,
0
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Wine13i"
);
RegCloseKey
(
hkey
);
RegCloseKey
(
hkey
);
lr
=
RegDeleteKeyA
(
HKEY_CURRENT_USER
,
KEY_BASE
);
lr
=
RegDeleteKeyA
(
HKEY_CURRENT_USER
,
KEY_BASE
);
...
...
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