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
e3d14e66
Commit
e3d14e66
authored
Jul 06, 2021
by
Hugh McMaster
Committed by
Alexandre Julliard
Jul 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reg/tests: Split 'import' syntax tests into a separate function.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e4e70f67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
import.c
programs/reg/tests/import.c
+14
-8
No files found.
programs/reg/tests/import.c
View file @
e3d14e66
...
...
@@ -93,15 +93,9 @@ BOOL import_reg(const char *file, unsigned line, const char *contents, BOOL unic
/* Unit tests */
static
void
test_
import
(
void
)
static
void
test_
command_syntax
(
void
)
{
DWORD
r
,
dword
=
0x123
,
type
,
size
;
char
buffer
[
24
];
HKEY
hkey
,
subkey
=
NULL
;
LONG
err
;
BYTE
hex
[
8
];
delete_tree
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
DWORD
r
;
run_reg_exe
(
"reg import"
,
&
r
);
ok
(
r
==
REG_EXIT_FAILURE
,
"got exit code %d, expected 1
\n
"
,
r
);
...
...
@@ -120,6 +114,17 @@ static void test_import(void)
run_reg_exe
(
"reg import a.reg b.reg"
,
&
r
);
ok
(
r
==
REG_EXIT_FAILURE
,
"got exit code %d, expected 1
\n
"
,
r
);
}
static
void
test_import
(
void
)
{
DWORD
r
,
dword
=
0x123
,
type
,
size
;
char
buffer
[
24
];
HKEY
hkey
,
subkey
=
NULL
;
LONG
err
;
BYTE
hex
[
8
];
delete_tree
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
/* Test file contents */
test_import_str
(
"regedit
\n
"
,
&
r
);
...
...
@@ -3602,6 +3607,7 @@ START_TEST(import)
return
;
}
test_command_syntax
();
test_import
();
test_unicode_import
();
test_import_with_whitespace
();
...
...
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