=?UTF-8?Q?Morten=20R=C3=B8nne=20?=: wininet/tests: Moved a test outside a loop to make numbers of tests run independent on the numbers of entries in the cache .

Alexandre Julliard julliard at winehq.org
Mon Apr 9 13:09:16 CDT 2012


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

Author: Morten Rønne <morten.roenne at tdcadsl.dk>
Date:   Mon Apr  9 10:44:58 2012 +0200

wininet/tests: Moved a test outside a loop to make numbers of tests run independent on the numbers of entries in the cache.

---

 dlls/wininet/tests/urlcache.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/wininet/tests/urlcache.c b/dlls/wininet/tests/urlcache.c
index 93ad333..02d8d28 100644
--- a/dlls/wininet/tests/urlcache.c
+++ b/dlls/wininet/tests/urlcache.c
@@ -69,6 +69,7 @@ static void test_find_url_cache_entriesA(void)
         if (!strcmp(lpCacheEntryInfo->lpszSourceUrlName, TEST_URL))
         {
             found = TRUE;
+            ret = TRUE;
             break;
         }
         SetLastError(0xdeadbeef);
@@ -83,10 +84,10 @@ static void test_find_url_cache_entriesA(void)
                 ret = FindNextUrlCacheEntry(hEnumHandle, lpCacheEntryInfo, &cbCacheEntryInfo);
             }
         }
-        ok(ret, "FindNextUrlCacheEntry failed with error %d\n", GetLastError());
         if (!ret)
             break;
     }
+    ok(ret, "FindNextUrlCacheEntry failed with error %d\n", GetLastError());
     ok(found, "Committed url cache entry not found during enumeration\n");
 
     ret = FindCloseUrlCache(hEnumHandle);




More information about the wine-cvs mailing list