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
ced6d461
Commit
ced6d461
authored
Dec 06, 2016
by
Hugh McMaster
Committed by
Alexandre Julliard
Dec 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit/tests: Move existing comment tests to a separate function.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
68ca28a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
8 deletions
+25
-8
regedit.c
programs/regedit/tests/regedit.c
+25
-8
No files found.
programs/regedit/tests/regedit.c
View file @
ced6d461
...
...
@@ -278,14 +278,6 @@ static void test_basic_import(void)
verify_reg
(
hkey
,
"Wine6"
,
REG_DWORD
,
&
dword
,
sizeof
(
dword
),
0
);
todo_wine
verify_reg
(
hkey
,
"Wine7"
,
REG_SZ
,
"No newline"
,
11
,
0
);
exec_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"#comment
\\\n
"
"
\"
Wine8
\"
=
\"
Line 1
\"\n
"
";comment
\\\n
"
"
\"
Wine9
\"
=
\"
Line 2
\"\n\n
"
);
verify_reg
(
hkey
,
"Wine8"
,
REG_SZ
,
"Line 1"
,
7
,
0
);
verify_reg
(
hkey
,
"Wine9"
,
REG_SZ
,
"Line 2"
,
7
,
0
);
RegCloseKey
(
hkey
);
lr
=
RegDeleteKeyA
(
HKEY_CURRENT_USER
,
KEY_BASE
);
...
...
@@ -344,6 +336,30 @@ static void test_invalid_import(void)
ok
(
lr
==
ERROR_SUCCESS
,
"RegDeleteKeyA failed: %d
\n
"
,
lr
);
}
static
void
test_comments
(
void
)
{
LONG
lr
;
HKEY
hkey
;
lr
=
RegDeleteKeyA
(
HKEY_CURRENT_USER
,
KEY_BASE
);
ok
(
lr
==
ERROR_SUCCESS
||
lr
==
ERROR_FILE_NOT_FOUND
,
"RegDeleteKeyA failed: %d
\n
"
,
lr
);
exec_import_str
(
"REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n
"
"#comment
\\\n
"
"
\"
Wine1
\"
=
\"
Line 1
\"\n
"
";comment
\\\n
"
"
\"
Wine2
\"
=
\"
Line 2
\"\n\n
"
);
lr
=
RegOpenKeyExA
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
,
KEY_READ
,
&
hkey
);
verify_reg
(
hkey
,
"Wine1"
,
REG_SZ
,
"Line 1"
,
7
,
0
);
verify_reg
(
hkey
,
"Wine2"
,
REG_SZ
,
"Line 2"
,
7
,
0
);
RegCloseKey
(
hkey
);
lr
=
RegDeleteKeyA
(
HKEY_CURRENT_USER
,
KEY_BASE
);
ok
(
lr
==
ERROR_SUCCESS
,
"RegDeleteKeyA failed: %d
\n
"
,
lr
);
}
START_TEST
(
regedit
)
{
WCHAR
wchar_test
[]
=
{
0xFEFF
,
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
' '
,
'R'
,
'e'
,
'g'
,
...
...
@@ -359,4 +375,5 @@ START_TEST(regedit)
test_basic_import
();
test_invalid_import
();
test_comments
();
}
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