Zebediah Figura : ntdll/tests: Check the alternate NT path only if it is present.

Alexandre Julliard julliard at winehq.org
Wed Feb 3 15:39:27 CST 2021


Module: wine
Branch: master
Commit: 32854b7ee38bbf16d27b253dbafcd50a5027d525
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=32854b7ee38bbf16d27b253dbafcd50a5027d525

Author: Zebediah Figura <zfigura at codeweavers.com>
Date:   Tue Feb  2 18:17:12 2021 -0600

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 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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))
         {




More information about the wine-cvs mailing list