Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5af62255
Commit
5af62255
authored
Apr 12, 2017
by
Hugh McMaster
Committed by
Alexandre Julliard
Apr 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit/tests: Add some REG_SZ import tests.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
66fd7339
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 @
5af62255
...
...
@@ -238,6 +238,11 @@ static void test_basic_import(void)
exec_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Empty string
\"
=
\"\"\n\n
"
);
verify_reg
(
hkey
,
"Empty string"
,
REG_SZ
,
""
,
1
,
0
);
exec_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Line1
\"
=
\"
Value1
\"\n\n
"
"
\"
Line2
\"
=
\"
Value2
\"\n\n\n
"
"
\"
Line3
\"
=
\"
Value3
\"\n\n\n\n
"
...
...
@@ -541,6 +546,17 @@ static void test_invalid_import(void)
todo_wine
verify_reg_nonexist
(
hkey
,
"Test15a"
);
todo_wine
verify_reg_nonexist
(
hkey
,
"Test15b"
);
exec_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Test16a
\"
=
\n
"
"
\"
Test16b
\"
=
\\\"\n
"
"
\"
Test16c
\"
=
\\\"
Value
\\\"\n
"
"
\"
Test16d
\"
=
\\\"
Value
\"\n\n
"
);
verify_reg_nonexist
(
hkey
,
"Test16a"
);
verify_reg_nonexist
(
hkey
,
"Test16b"
);
verify_reg_nonexist
(
hkey
,
"Test16c"
);
verify_reg_nonexist
(
hkey
,
"Test16d"
);
RegCloseKey
(
hkey
);
lr
=
RegDeleteKeyA
(
HKEY_CURRENT_USER
,
KEY_BASE
);
...
...
@@ -653,6 +669,17 @@ static void test_comments(void)
exec_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Wine26a
\"
=
\"
Value1
\"
;comment
\n
"
"
\"
Wine26b
\"
=
\"
Value2
\"\t\t
;comment
\n
"
"
\"
Wine26c
\"
=
\"
Value3
\"
#comment
\n
"
"
\"
Wine26d
\"
=
\"
Value4
\"\t\t
#comment
\n\n
"
);
todo_wine
verify_reg
(
hkey
,
"Wine26a"
,
REG_SZ
,
"Value1"
,
7
,
0
);
todo_wine
verify_reg
(
hkey
,
"Wine26b"
,
REG_SZ
,
"Value2"
,
7
,
0
);
verify_reg_nonexist
(
hkey
,
"Wine26c"
);
verify_reg_nonexist
(
hkey
,
"Wine26d"
);
exec_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Multi-Line1
\"
=hex(7):4c,69,6e,65,20,
\\\n
"
" 63,6f,6e,
\\
;comment
\n
"
" 63,61,74,
\\
;comment
\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