ntdll/tests: Use todo_wine_if() in tests

Frédéric Delanoy frederic.delanoy at gmail.com
Fri Feb 19 15:10:55 CST 2016


Signed-off-by: Frédéric Delanoy <frederic.delanoy at gmail.com>
---
 dlls/ntdll/tests/directory.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/dlls/ntdll/tests/directory.c b/dlls/ntdll/tests/directory.c
index 7b1002a..f93c623 100644
--- a/dlls/ntdll/tests/directory.c
+++ b/dlls/ntdll/tests/directory.c
@@ -148,12 +148,8 @@ static void tally_test_file(FILE_BOTH_DIRECTORY_INFORMATION *dir_info)
         if (namelen != len || memcmp(nameW, testfiles[i].nameW, len*sizeof(WCHAR)))
             continue;
         if (!testfiles[i].attr_done) {
-            if (testfiles[i].todo) {
-                todo_wine
+            todo_wine_if (testfiles[i].todo)
                 ok (attrib == (testfiles[i].attr & attribmask), "file %s: expected %s (%x), got %x (is your linux new enough?)\n", testfiles[i].name, testfiles[i].description, testfiles[i].attr, attrib);
-            } else {
-                ok (attrib == (testfiles[i].attr & attribmask), "file %s: expected %s (%x), got %x (is your linux new enough?)\n", testfiles[i].name, testfiles[i].description, testfiles[i].attr, attrib);
-            }
             testfiles[i].attr_done = TRUE;
         }
         testfiles[i].nfound++;
-- 
2.7.1




More information about the wine-patches mailing list