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
2926c282
Commit
2926c282
authored
Apr 24, 2017
by
Hugh McMaster
Committed by
Alexandre Julliard
Apr 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit/tests: Add some more import tests.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f0f0a8c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
regedit.c
programs/regedit/tests/regedit.c
+27
-0
No files found.
programs/regedit/tests/regedit.c
View file @
2926c282
...
...
@@ -294,6 +294,23 @@ static void test_basic_import(void)
exec_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Wine9a
\"
=hex(2):4c,69,6e,65,00
\n
"
"
\"
Wine9b
\"
=
\"
Value 1
\"\n
"
"
\"
Wine9c
\"
=hex(2):4c,69,6e,65
\\\n
"
"
\"
Wine9d
\"
=
\"
Value 2
\"\n
"
"
\"
Wine9e
\"
=hex(2):4c,69,6e,65,
\\\n
"
"
\"
Wine9f
\"
=
\"
Value 3
\"\n
"
"
\"
Wine9g
\"
=
\"
Value 4
\"\n\n
"
);
verify_reg
(
hkey
,
"Wine9a"
,
REG_EXPAND_SZ
,
"Line"
,
5
,
0
);
verify_reg
(
hkey
,
"Wine9b"
,
REG_SZ
,
"Value 1"
,
8
,
0
);
verify_reg_nonexist
(
hkey
,
"Wine9c"
);
todo_wine
verify_reg
(
hkey
,
"Wine9d"
,
REG_SZ
,
"Value 2"
,
8
,
0
);
verify_reg_nonexist
(
hkey
,
"Wine9e"
);
verify_reg_nonexist
(
hkey
,
"Wine9f"
);
verify_reg
(
hkey
,
"Wine9g"
,
REG_SZ
,
"Value 4"
,
8
,
0
);
exec_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
double
\\\"
quote
\"
=
\"
valid
\\\"
or
\\\"
not
\"\n
"
"
\"
single'quote
\"
=dword:00000008
\n\n
"
);
verify_reg
(
hkey
,
"double
\"
quote"
,
REG_SZ
,
"valid
\"
or
\"
not"
,
15
,
0
);
...
...
@@ -839,6 +856,16 @@ static void test_import_with_whitespace(void)
verify_reg
(
hkey
,
"Wine9a"
,
REG_DWORD
,
&
dword
,
sizeof
(
dword
),
0
);
verify_reg
(
hkey
,
"Wine9b"
,
REG_DWORD
,
&
dword
,
sizeof
(
dword
),
0
);
exec_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"@ =
\"
Test Value
\"\n\n
"
);
todo_wine
verify_reg
(
hkey
,
""
,
REG_SZ
,
"Test Value"
,
11
,
0
);
exec_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\t
@
\t
=
\t
dword:
\t
00000008
\t\n\n
"
);
todo_wine
verify_reg
(
hkey
,
""
,
REG_DWORD
,
&
dword
,
sizeof
(
DWORD
),
0
);
lr
=
RegCloseKey
(
hkey
);
ok
(
lr
==
ERROR_SUCCESS
,
"RegCloseKey failed: got %d, expected 0
\n
"
,
lr
);
...
...
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