https://git.reactos.org/?p=reactos.git;a=commitdiff;h=aabda6f60852ff7ed902b…
commit aabda6f60852ff7ed902b49527199f52e52930de
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Mon Jan 17 18:47:36 2022 +0100
Commit: Thomas Csovcsity <thc.fr13nd(a)gmail.com>
CommitDate: Sun Jun 19 13:06:37 2022 +0200
[WINESYNC] reg/tests: Move 'delete' syntax tests into a separate function.
Signed-off-by: Hugh McMaster <hugh.mcmaster(a)outlook.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 7c9f372480511cba8abd90ed04480911d96036de by Hugh McMaster
<hugh.mcmaster(a)outlook.com>
---
modules/rostests/winetests/reg/delete.c | 15 ++++++++++++---
sdk/tools/winesync/reg.cfg | 2 +-
2 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/modules/rostests/winetests/reg/delete.c
b/modules/rostests/winetests/reg/delete.c
index 22c5e867461..251a15f3371 100644
--- a/modules/rostests/winetests/reg/delete.c
+++ b/modules/rostests/winetests/reg/delete.c
@@ -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();
}
diff --git a/sdk/tools/winesync/reg.cfg b/sdk/tools/winesync/reg.cfg
index 73ccb441c23..9ab5d25993d 100644
--- a/sdk/tools/winesync/reg.cfg
+++ b/sdk/tools/winesync/reg.cfg
@@ -4,4 +4,4 @@ directories:
files:
programs/reg/resource.h: base/applications/cmdutils/reg/resource.h
tags:
- wine: 304b80a9b5a6ed128dd8a89e22f05b99142310cd
+ wine: 7c9f372480511cba8abd90ed04480911d96036de