[PATCH 2/5] ntdll/tests: Check the alternate NT path only if it is present.
Zebediah Figura
z.figura12 at gmail.com
Tue Feb 2 18:17:12 CST 2021
From: Zebediah Figura <zfigura at codeweavers.com>
Makes adding new tests a bit easier...
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
dlls/ntdll/tests/path.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/tests/path.c b/dlls/ntdll/tests/path.c
index a91038bab7b..6b3be9e9541 100644
--- a/dlls/ntdll/tests/path.c
+++ b/dlls/ntdll/tests/path.c
@@ -580,8 +580,10 @@ static void test_RtlDosPathNameToNtPathName_U(void)
continue;
}
- ok(!wcscmp(nameW.Buffer, tests[i].nt) || broken(!wcscmp(nameW.Buffer, tests[i].alt_nt)), "%s: Expected %s, got %s.\n",
- debugstr_w(tests[i].dos), debugstr_w(tests[i].nt), debugstr_w(nameW.Buffer));
+ ok(!wcscmp(nameW.Buffer, tests[i].nt)
+ || (tests[i].alt_nt && broken(!wcscmp(nameW.Buffer, tests[i].alt_nt))),
+ "%s: Expected %s, got %s.\n", debugstr_w(tests[i].dos),
+ debugstr_w(tests[i].nt), debugstr_w(nameW.Buffer));
if (!wcscmp(nameW.Buffer, tests[i].nt))
{
--
2.20.1
More information about the wine-devel
mailing list