From 4b3e4fa87b4ea8d3c59477068b6072763b0a180a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20R=C3=B8nne?= Date: Mon, 9 Apr 2012 10:44:58 +0200 Subject: [PATCH] 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 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/wininet/tests/urlcache.c b/dlls/wininet/tests/urlcache.c index 93ad333dbc3..02d8d28765b 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);