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:
parent
f6ea0b6cdd
commit
4b3e4fa87b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue