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

This commit is contained in:
Morten Rønne 2012-04-09 10:44:58 +02:00 committed by Alexandre Julliard
parent f6ea0b6cdd
commit 4b3e4fa87b
1 changed files with 2 additions and 1 deletions

View File

@ -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);