Commit ac07d2eb authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

wininet/tests: Skip some tests on IE5.

parent 1db4ecf8
...@@ -27,6 +27,8 @@ ...@@ -27,6 +27,8 @@
#include "wine/test.h" #include "wine/test.h"
static BOOL (WINAPI *pCreateUrlCacheContainerA)(DWORD, DWORD, DWORD, DWORD,
DWORD, DWORD, DWORD, DWORD);
static BOOL (WINAPI *pInternetTimeFromSystemTimeA)(CONST SYSTEMTIME *,DWORD ,LPSTR ,DWORD); static BOOL (WINAPI *pInternetTimeFromSystemTimeA)(CONST SYSTEMTIME *,DWORD ,LPSTR ,DWORD);
static BOOL (WINAPI *pInternetTimeFromSystemTimeW)(CONST SYSTEMTIME *,DWORD ,LPWSTR ,DWORD); static BOOL (WINAPI *pInternetTimeFromSystemTimeW)(CONST SYSTEMTIME *,DWORD ,LPWSTR ,DWORD);
static BOOL (WINAPI *pInternetTimeToSystemTimeA)(LPCSTR ,SYSTEMTIME *,DWORD); static BOOL (WINAPI *pInternetTimeToSystemTimeA)(LPCSTR ,SYSTEMTIME *,DWORD);
...@@ -770,6 +772,7 @@ START_TEST(internet) ...@@ -770,6 +772,7 @@ START_TEST(internet)
{ {
HMODULE hdll; HMODULE hdll;
hdll = GetModuleHandleA("wininet.dll"); hdll = GetModuleHandleA("wininet.dll");
pCreateUrlCacheContainerA = (void*)GetProcAddress(hdll, "CreateUrlCacheContainerA");
pInternetTimeFromSystemTimeA = (void*)GetProcAddress(hdll, "InternetTimeFromSystemTimeA"); pInternetTimeFromSystemTimeA = (void*)GetProcAddress(hdll, "InternetTimeFromSystemTimeA");
pInternetTimeFromSystemTimeW = (void*)GetProcAddress(hdll, "InternetTimeFromSystemTimeW"); pInternetTimeFromSystemTimeW = (void*)GetProcAddress(hdll, "InternetTimeFromSystemTimeW");
pInternetTimeToSystemTimeA = (void*)GetProcAddress(hdll, "InternetTimeToSystemTimeA"); pInternetTimeToSystemTimeA = (void*)GetProcAddress(hdll, "InternetTimeToSystemTimeA");
...@@ -784,7 +787,7 @@ START_TEST(internet) ...@@ -784,7 +787,7 @@ START_TEST(internet)
test_null(); test_null();
if (!pInternetTimeFromSystemTimeA) if (!pInternetTimeFromSystemTimeA)
skip("skipping the InternetTime tests\n"); win_skip("skipping the InternetTime tests\n");
else else
{ {
InternetTimeFromSystemTimeA_test(); InternetTimeFromSystemTimeA_test();
...@@ -792,8 +795,10 @@ START_TEST(internet) ...@@ -792,8 +795,10 @@ START_TEST(internet)
InternetTimeToSystemTimeA_test(); InternetTimeToSystemTimeA_test();
InternetTimeToSystemTimeW_test(); InternetTimeToSystemTimeW_test();
} }
if (!pIsDomainLegalCookieDomainW) if (pIsDomainLegalCookieDomainW && (void*)pIsDomainLegalCookieDomainW == (void*)pCreateUrlCacheContainerA)
skip("skipping IsDomainLegalCookieDomainW tests\n"); win_skip("IsDomainLegalCookieDomainW is not available on systems with IE5\n");
else if (!pIsDomainLegalCookieDomainW)
win_skip("IsDomainLegalCookieDomainW (or ordinal 117) is not available\n");
else else
test_IsDomainLegalCookieDomainW(); test_IsDomainLegalCookieDomainW();
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment