mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 18:11:57 +00:00
[WINESYNC] reg/tests: Move 'delete' syntax tests into a separate function.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id 7c9f372480511cba8abd90ed04480911d96036de by Hugh McMaster <hugh.mcmaster@outlook.com>
This commit is contained in:
parent
ad80ceabc3
commit
aabda6f608
2 changed files with 13 additions and 4 deletions
|
@ -19,11 +19,9 @@
|
|||
|
||||
#include "reg_test.h"
|
||||
|
||||
static void test_delete(void)
|
||||
static void test_command_syntax(void)
|
||||
{
|
||||
HKEY hkey;
|
||||
DWORD r;
|
||||
const DWORD deadbeef = 0xdeadbeef;
|
||||
|
||||
delete_tree(HKEY_CURRENT_USER, KEY_BASE);
|
||||
verify_key_nonexist(HKEY_CURRENT_USER, KEY_BASE, 0);
|
||||
|
@ -68,6 +66,16 @@ static void test_delete(void)
|
|||
|
||||
run_reg_exe("reg delete HKCU\\" KEY_BASE " /f /v", &r);
|
||||
ok(r == REG_EXIT_FAILURE, "got exit code %d, expected 1\n", r);
|
||||
}
|
||||
|
||||
static void test_delete(void)
|
||||
{
|
||||
HKEY hkey;
|
||||
DWORD r;
|
||||
const DWORD deadbeef = 0xdeadbeef;
|
||||
|
||||
delete_tree(HKEY_CURRENT_USER, KEY_BASE);
|
||||
verify_key_nonexist(HKEY_CURRENT_USER, KEY_BASE, 0);
|
||||
|
||||
/* Create a test key */
|
||||
add_key(HKEY_CURRENT_USER, KEY_BASE, 0, &hkey);
|
||||
|
@ -142,5 +150,6 @@ START_TEST(delete)
|
|||
return;
|
||||
}
|
||||
|
||||
test_command_syntax();
|
||||
test_delete();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue