https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f27a0866a4b9742e70f82…
commit f27a0866a4b9742e70f823c2cf9f1a44aea20621
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Sun Jan 16 21:21:17 2022 +0100
Commit: Thomas Csovcsity <thc.fr13nd(a)gmail.com>
CommitDate: Sun Jun 19 13:06:35 2022 +0200
[WINESYNC] reg/tests: Add further syntax tests for the 'copy' command.
Signed-off-by: Hugh McMaster <hugh.mcmaster(a)outlook.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id c0619c092962d1c14725ac6cdc84b8e80ecb09bc by Hugh McMaster
<hugh.mcmaster(a)outlook.com>
---
modules/rostests/winetests/reg/copy.c | 27 +++++++++++++++++++++++++++
sdk/tools/winesync/reg.cfg | 2 +-
2 files changed, 28 insertions(+), 1 deletion(-)
diff --git a/modules/rostests/winetests/reg/copy.c
b/modules/rostests/winetests/reg/copy.c
index 31223a3d314..0d245dae4da 100644
--- a/modules/rostests/winetests/reg/copy.c
+++ b/modules/rostests/winetests/reg/copy.c
@@ -88,11 +88,38 @@ static void test_command_syntax(void)
run_reg_exe("reg copy HKCU\\" COPY_SRC " HKCU\\" COPY_SRC,
&r);
ok(r == REG_EXIT_FAILURE, "got exit code %d, expected 1\n", r);
+ run_reg_exe("reg copy HKCU\\" COPY_SRC "\\ HKCU\\" COPY_SRC,
&r);
+ ok(r == REG_EXIT_FAILURE, "got exit code %d, expected 1\n", r);
+
+ run_reg_exe("reg copy HKCU\\" COPY_SRC " HKCU\\" COPY_SRC
"\\", &r);
+ ok(r == REG_EXIT_FAILURE, "got exit code %d, expected 1\n", r);
+
+ run_reg_exe("reg copy HKCU\\" COPY_SRC "\\ HKCU\\" COPY_SRC
"\\", &r);
+ ok(r == REG_EXIT_FAILURE, "got exit code %d, expected 1\n", r);
+
run_reg_exe("reg copy HKCU\\" COPY_SRC " HKCU\\" COPY_SRC "
/f", &r);
ok(r == REG_EXIT_FAILURE, "got exit code %d, expected 1\n", r);
+ run_reg_exe("reg copy HKCU\\" COPY_SRC "\\ HKCU\\" COPY_SRC
" /f", &r);
+ ok(r == REG_EXIT_FAILURE, "got exit code %d, expected 1\n", r);
+
+ run_reg_exe("reg copy HKCU\\" COPY_SRC " HKCU\\" COPY_SRC
"\\ /f", &r);
+ ok(r == REG_EXIT_FAILURE, "got exit code %d, expected 1\n", r);
+
+ run_reg_exe("reg copy HKCU\\" COPY_SRC "\\ HKCU\\" COPY_SRC
"\\ /f", &r);
+ ok(r == REG_EXIT_FAILURE, "got exit code %d, expected 1\n", r);
+
run_reg_exe("reg copy HKCU\\" COPY_SRC " HKCU\\" COPY_SRC "
/s /f", &r);
ok(r == REG_EXIT_FAILURE, "got exit code %d, expected 1\n", r);
+
+ run_reg_exe("reg copy HKCU\\" COPY_SRC "\\ HKCU\\" COPY_SRC
" /s /f", &r);
+ ok(r == REG_EXIT_FAILURE, "got exit code %d, expected 1\n", r);
+
+ run_reg_exe("reg copy HKCU\\" COPY_SRC " HKCU\\" COPY_SRC
"\\ /s /f", &r);
+ ok(r == REG_EXIT_FAILURE, "got exit code %d, expected 1\n", r);
+
+ run_reg_exe("reg copy HKCU\\" COPY_SRC "\\ HKCU\\" COPY_SRC
"\\ /s /f", &r);
+ ok(r == REG_EXIT_FAILURE, "got exit code %d, expected 1\n", r);
}
START_TEST(copy)
diff --git a/sdk/tools/winesync/reg.cfg b/sdk/tools/winesync/reg.cfg
index 74438397053..caed52b5125 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: fa4268dcbcfe0b1bcbe3adafb7e3dd542eb6d928
+ wine: c0619c092962d1c14725ac6cdc84b8e80ecb09bc