wine/dlls/shlwapi/tests path.c

Alexandre Julliard julliard at wine.codeweavers.com
Mon Oct 31 04:02:24 CST 2005


ChangeSet ID:	20982
CVSROOT:	/opt/cvs-commit
Module name:	wine
Changes by:	julliard at winehq.org	2005/10/31 04:02:24

Modified files:
	dlls/shlwapi/tests: path.c 

Log message:
	Stefan Leichter <Stefan.Leichter at camLine.com>
	Stop PathIsValidCharW tests after 100 failing tests.

Patch: http://cvs.winehq.org/patch.py?id=20982

Old revision  New revision  Changes     Path
 1.22          1.23          +9 -1       wine/dlls/shlwapi/tests/path.c

Index: wine/dlls/shlwapi/tests/path.c
diff -u -p wine/dlls/shlwapi/tests/path.c:1.22 wine/dlls/shlwapi/tests/path.c:1.23
--- wine/dlls/shlwapi/tests/path.c	31 Oct 2005 10: 2:24 -0000
+++ /dev/null	31 Oct 2005 10: 2:24 -0000
@@ -751,7 +751,7 @@ static void test_PathIsValidCharA(void)
 static void test_PathIsValidCharW(void)
 {
     BOOL ret;
-    unsigned int c;
+    unsigned int c, err_count = 0;
 
     ret = pPathIsValidCharW( 0x7f, 0 );
     ok ( !ret, "PathIsValidCharW succeeded: 0x%08lx\n", (DWORD)ret );
@@ -773,6 +773,14 @@ static void test_PathIsValidCharW(void)
         ok ( ret == 0x00000100,
              "PathIsValidCharW failed: 0x%02x got 0x%08lx expected 0x00000100\n",
              c, (DWORD)ret );
+        if (ret != 0x00000100)
+        {
+            if(++err_count > 100 ) {
+                trace("skipping rest of PathIsValidCharW tests "
+                      "because of the current number of errors\n");
+                break;
+            }
+        }
     }
 }
 



More information about the wine-cvs mailing list