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
00bd109e
Commit
00bd109e
authored
Feb 24, 2017
by
Hugh McMaster
Committed by
Alexandre Julliard
Feb 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit/tests: Test import with non-standard registry file headers.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
83cce966
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
0 deletions
+56
-0
regedit.c
programs/regedit/tests/regedit.c
+56
-0
No files found.
programs/regedit/tests/regedit.c
View file @
00bd109e
...
...
@@ -415,6 +415,62 @@ static void test_invalid_import(void)
verify_reg_nonexist
(
hkey
,
"MixedQuotes"
);
verify_reg_nonexist
(
hkey
,
"MixedQuotes=Asdffdsa"
);
/* Test import with non-standard registry file headers */
exec_import_str
(
"REGEDIT3
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Test1
\"
=
\"
Value
\"\n
"
);
verify_reg_nonexist
(
hkey
,
"Test1"
);
exec_import_str
(
"regedit4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Test2
\"
=
\"
Value
\"\n
"
);
verify_reg_nonexist
(
hkey
,
"Test2"
);
exec_import_str
(
"Regedit4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Test3
\"
=
\"
Value
\"\n
"
);
verify_reg_nonexist
(
hkey
,
"Test3"
);
exec_import_str
(
"REGEDIT 4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Test4
\"
=
\"
Value
\"\n
"
);
verify_reg_nonexist
(
hkey
,
"Test4"
);
exec_import_str
(
"REGEDIT4FOO
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Test5
\"
=
\"
Value
\"\n
"
);
verify_reg_nonexist
(
hkey
,
"Test5"
);
exec_import_str
(
"REGEDIT4 FOO
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Test6
\"
=
\"
Value
\"\n
"
);
verify_reg_nonexist
(
hkey
,
"Test6"
);
exec_import_str
(
"REGEDIT5
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Test7
\"
=
\"
Value
\"\n
"
);
verify_reg_nonexist
(
hkey
,
"Test7"
);
exec_import_str
(
"Windows Registry Editor Version 4.00
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Test8
\"
=
\"
Value
\"\n
"
);
verify_reg_nonexist
(
hkey
,
"Test8"
);
exec_import_str
(
"Windows Registry Editor Version 5
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Test9
\"
=
\"
Value
\"\n
"
);
verify_reg_nonexist
(
hkey
,
"Test9"
);
exec_import_str
(
"WINDOWS REGISTRY EDITOR VERSION 5.00
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Test10
\"
=
\"
Value
\"\n
"
);
verify_reg_nonexist
(
hkey
,
"Test10"
);
exec_import_str
(
"Windows Registry Editor version 5.00
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"
\"
Test11
\"
=
\"
Value
\"\n
"
);
verify_reg_nonexist
(
hkey
,
"Test11"
);
RegCloseKey
(
hkey
);
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