Alexandre Julliard : winetest: Fix filtering of whole dll when individual tests are excluded.

Alexandre Julliard julliard at winehq.org
Fri Dec 10 11:56:58 CST 2010


Module: wine
Branch: master
Commit: 17e2cbd4dc86a9001e90e84ef0af45fe6634cbea
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=17e2cbd4dc86a9001e90e84ef0af45fe6634cbea

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Dec 10 12:13:15 2010 +0100

winetest: Fix filtering of whole dll when individual tests are excluded.

---

 programs/winetest/main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/programs/winetest/main.c b/programs/winetest/main.c
index 1ea308b..c1ee938 100644
--- a/programs/winetest/main.c
+++ b/programs/winetest/main.c
@@ -99,7 +99,8 @@ static BOOL test_filtered_out( LPCSTR module, LPCSTR testname )
         {
             if (!filters[i][len]) return exclude_tests;
             if (filters[i][len] != ':') continue;
-            if (!testname || !strcmp( testname, &filters[i][len+1] )) return exclude_tests;
+            if (testname && !strcmp( testname, &filters[i][len+1] )) return exclude_tests;
+            if (!testname && !exclude_tests) return FALSE;
         }
     }
     return !exclude_tests;




More information about the wine-cvs mailing list