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
3186a004
Commit
3186a004
authored
Jul 01, 2021
by
Hugh McMaster
Committed by
Alexandre Julliard
Jul 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reg/tests: Don't verify key deletion after calling delete_tree().
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5115e51a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
43 deletions
+0
-43
add.c
programs/reg/tests/add.c
+0
-1
copy.c
programs/reg/tests/copy.c
+0
-27
delete.c
programs/reg/tests/delete.c
+0
-9
export.c
programs/reg/tests/export.c
+0
-1
import.c
programs/reg/tests/import.c
+0
-4
query.c
programs/reg/tests/query.c
+0
-1
No files found.
programs/reg/tests/add.c
View file @
3186a004
...
...
@@ -226,7 +226,6 @@ static void test_command_syntax(void)
DWORD
r
;
delete_tree
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
run_reg_exe
(
"reg add"
,
&
r
);
ok
(
r
==
REG_EXIT_FAILURE
,
"got exit code %d, expected 1
\n
"
,
r
);
...
...
programs/reg/tests/copy.c
View file @
3186a004
...
...
@@ -127,10 +127,7 @@ static void test_copy_empty_key(void)
DWORD
r
;
delete_tree
(
HKEY_CURRENT_USER
,
COPY_SRC
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
COPY_SRC
,
0
);
delete_tree
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
add_key
(
HKEY_CURRENT_USER
,
COPY_SRC
,
0
,
NULL
);
...
...
@@ -192,10 +189,7 @@ static void test_copy_simple_data(void)
DWORD
r
,
dword
;
delete_tree
(
HKEY_CURRENT_USER
,
COPY_SRC
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
COPY_SRC
,
0
);
delete_tree
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
add_key
(
HKEY_CURRENT_USER
,
COPY_SRC
,
0
,
&
hkey
);
...
...
@@ -262,10 +256,7 @@ static void test_copy_complex_data(void)
DWORD
r
,
dword
;
delete_tree
(
HKEY_CURRENT_USER
,
COPY_SRC
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
COPY_SRC
,
0
);
delete_tree
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
add_key
(
HKEY_CURRENT_USER
,
COPY_SRC
,
0
,
&
hkey
);
...
...
@@ -331,10 +322,7 @@ static void test_copy_key_order(void)
DWORD
r
;
delete_tree
(
HKEY_CURRENT_USER
,
COPY_SRC
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
COPY_SRC
,
0
);
delete_tree
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
add_key
(
HKEY_CURRENT_USER
,
COPY_SRC
,
0
,
&
hkey
);
add_key
(
hkey
,
"Subkey2"
,
0
,
NULL
);
...
...
@@ -356,10 +344,7 @@ static void test_copy_value_order(void)
DWORD
r
;
delete_tree
(
HKEY_CURRENT_USER
,
COPY_SRC
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
COPY_SRC
,
0
);
delete_tree
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
add_key
(
HKEY_CURRENT_USER
,
COPY_SRC
,
0
,
&
hkey
);
add_value
(
hkey
,
"Value 2"
,
REG_SZ
,
"I was added first!"
,
19
);
...
...
@@ -381,10 +366,7 @@ static void test_copy_hex_data(void)
DWORD
r
;
delete_tree
(
HKEY_CURRENT_USER
,
COPY_SRC
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
COPY_SRC
,
0
);
delete_tree
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
/* Try copying empty hex values */
add_key
(
HKEY_CURRENT_USER
,
COPY_SRC
,
0
,
&
hkey
);
...
...
@@ -450,10 +432,7 @@ static void test_copy_embedded_null_values(void)
DWORD
r
;
delete_tree
(
HKEY_CURRENT_USER
,
COPY_SRC
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
COPY_SRC
,
0
);
delete_tree
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
test_import_wstr
(
"
\xef\xbb\xbf
Windows Registry Editor Version 5.00
\n\n
"
"[HKEY_CURRENT_USER
\\
"
COPY_SRC
"]
\n
"
...
...
@@ -483,10 +462,7 @@ static void test_copy_slashes(void)
DWORD
r
;
delete_tree
(
HKEY_CURRENT_USER
,
COPY_SRC
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
COPY_SRC
,
0
);
delete_tree
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
add_key
(
HKEY_CURRENT_USER
,
COPY_SRC
,
0
,
&
hkey
);
add_key
(
hkey
,
"https://winehq.org"
,
0
,
NULL
);
...
...
@@ -509,10 +485,7 @@ static void test_copy_escaped_null_values(void)
DWORD
r
;
delete_tree
(
HKEY_CURRENT_USER
,
COPY_SRC
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
COPY_SRC
,
0
);
delete_tree
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
add_key
(
HKEY_CURRENT_USER
,
COPY_SRC
,
0
,
&
hkey
);
add_value
(
hkey
,
"Wine5a"
,
REG_SZ
,
"
\\
0"
,
3
);
...
...
programs/reg/tests/delete.c
View file @
3186a004
...
...
@@ -24,7 +24,6 @@ static void test_command_syntax(void)
DWORD
r
;
delete_tree
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
run_reg_exe
(
"reg delete"
,
&
r
);
ok
(
r
==
REG_EXIT_FAILURE
,
"got exit code %d, expected 1
\n
"
,
r
);
...
...
@@ -85,7 +84,6 @@ static void test_delete(void)
const
DWORD
deadbeef
=
0xdeadbeef
;
delete_tree
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
/* Create a test key */
add_key
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
,
&
hkey
);
...
...
@@ -184,7 +182,6 @@ static void test_registry_view_win32(void)
if
(
!
is_win32
)
return
;
delete_tree
(
HKEY_LOCAL_MACHINE
,
KEY_BASE
,
KEY_WOW64_32KEY
);
verify_key_nonexist
(
HKEY_LOCAL_MACHINE
,
KEY_BASE
,
KEY_WOW64_32KEY
);
/* Test deletion from the 32-bit registry view (32-bit Windows) */
create_test_key
(
KEY_WOW64_32KEY
);
...
...
@@ -257,10 +254,7 @@ static void test_registry_view_win64(void)
if
(
!
is_win64
)
return
;
delete_tree
(
HKEY_LOCAL_MACHINE
,
KEY_BASE
,
KEY_WOW64_32KEY
);
verify_key_nonexist
(
HKEY_LOCAL_MACHINE
,
KEY_BASE
,
KEY_WOW64_32KEY
);
delete_tree
(
HKEY_LOCAL_MACHINE
,
KEY_BASE
,
KEY_WOW64_64KEY
);
verify_key_nonexist
(
HKEY_LOCAL_MACHINE
,
KEY_BASE
,
KEY_WOW64_64KEY
);
/* Test deletion from the 32-bit registry view (64-bit Windows) */
create_test_key
(
KEY_WOW64_32KEY
);
...
...
@@ -336,10 +330,7 @@ static void test_registry_view_wow64(void)
if
(
!
is_wow64
)
return
;
delete_tree
(
HKEY_LOCAL_MACHINE
,
KEY_BASE
,
KEY_WOW64_32KEY
);
verify_key_nonexist
(
HKEY_LOCAL_MACHINE
,
KEY_BASE
,
KEY_WOW64_32KEY
);
delete_tree
(
HKEY_LOCAL_MACHINE
,
KEY_BASE
,
KEY_WOW64_64KEY
);
verify_key_nonexist
(
HKEY_LOCAL_MACHINE
,
KEY_BASE
,
KEY_WOW64_64KEY
);
/* Test deletion from the 32-bit registry view (WOW64) */
create_test_key
(
KEY_WOW64_32KEY
);
...
...
programs/reg/tests/export.c
View file @
3186a004
...
...
@@ -177,7 +177,6 @@ static void test_export(void)
BYTE
hex
[
4
],
buffer
[
8
];
delete_tree
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
run_reg_exe
(
"reg export"
,
&
r
);
ok
(
r
==
REG_EXIT_FAILURE
,
"got exit code %d, expected 1
\n
"
,
r
);
...
...
programs/reg/tests/import.c
View file @
3186a004
...
...
@@ -102,7 +102,6 @@ static void test_import(void)
BYTE
hex
[
8
];
delete_tree
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
run_reg_exe
(
"reg import"
,
&
r
);
ok
(
r
==
REG_EXIT_FAILURE
,
"got exit code %d, expected 1
\n
"
,
r
);
...
...
@@ -1655,7 +1654,6 @@ static void test_unicode_import(void)
BYTE
hex
[
8
];
delete_tree
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
test_import_wstr
(
"REGEDIT
\n
"
,
&
r
);
ok
(
r
==
REG_EXIT_FAILURE
||
broken
(
r
==
REG_EXIT_SUCCESS
)
/* WinXP */
,
...
...
@@ -3201,7 +3199,6 @@ static void test_import_with_whitespace(void)
DWORD
r
,
dword
;
delete_tree
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
test_import_str
(
" REGEDIT4
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n\n
"
,
&
r
);
...
...
@@ -3347,7 +3344,6 @@ static void test_unicode_import_with_whitespace(void)
DWORD
r
,
dword
;
delete_tree
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
test_import_wstr
(
"
\xef\xbb\xbf
Windows Registry Editor Version 5.00
\n\n
"
"[HKEY_CURRENT_USER
\\
"
KEY_BASE
"]
\n\n
"
,
&
r
);
...
...
programs/reg/tests/query.c
View file @
3186a004
...
...
@@ -204,7 +204,6 @@ static void test_query(void)
BYTE
buf
[
512
];
delete_tree
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
verify_key_nonexist
(
HKEY_CURRENT_USER
,
KEY_BASE
,
0
);
/* Key not present */
run_reg_exe
(
"reg query HKCU
\\
"
KEY_BASE
,
&
r
);
...
...
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