From f6566bf7493dea2511238ad59aae873168b16963 Mon Sep 17 00:00:00 2001 From: Hugh McMaster Date: Thu, 15 Apr 2021 21:03:21 +1000 Subject: [PATCH] reg/tests: Test output of keys with a trailing backslash. Signed-off-by: Hugh McMaster Signed-off-by: Alexandre Julliard --- 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 410f4b250d3..c475d288fd8 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);