ntdll/tests: Check the alternate NT path only if it is present.
Makes adding new tests a bit easier... Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f349e567ea
commit
32854b7ee3
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue