[PATCH 2/2] reg/tests: Test output of keys with a trailing backslash

Hugh McMaster hugh.mcmaster at outlook.com
Thu Apr 15 06:03:21 CDT 2021


Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
 programs/reg/tests/query.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/programs/reg/tests/query.c b/programs/reg/tests/query.c
index 93f30e3fc94..3c3dd062371 100644
--- a/programs/reg/tests/query.c
+++ b/programs/reg/tests/query.c
@@ -233,6 +233,10 @@ static void test_query(void)
     ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r);
     compare_query(buf, test6, FALSE, 0);
 
+    read_reg_output("reg query HKCU\\" KEY_BASE "\\ /s", buf, sizeof(buf), &r);
+    ok(r == REG_EXIT_SUCCESS, "got exit code %d, expected 0\n", r);
+    compare_query(buf, test6, FALSE, TODO_REG_COMPARE);
+
     read_reg_output("reg query HKCU\\" KEY_BASE " /v Wine /s", buf, sizeof(buf), &r);
     ok(r == REG_EXIT_SUCCESS || r == REG_EXIT_FAILURE /* WinXP */,
        "got exit code %d, expected 0\n", r);
-- 
2.31.0




More information about the wine-devel mailing list