wininet/tests: Skip tests if functions are not implemented.
This commit is contained in:
parent
947bf5834f
commit
ab75abbe39
|
@ -354,7 +354,13 @@ static void test_null(void)
|
||||||
BOOL r;
|
BOOL r;
|
||||||
DWORD sz;
|
DWORD sz;
|
||||||
|
|
||||||
|
SetLastError(0xdeadbeef);
|
||||||
hi = InternetOpenW(NULL, 0, NULL, NULL, 0);
|
hi = InternetOpenW(NULL, 0, NULL, NULL, 0);
|
||||||
|
if (hi == NULL && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
|
||||||
|
{
|
||||||
|
win_skip("Internet*W functions are not implemented\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
ok(hi != NULL, "open failed\n");
|
ok(hi != NULL, "open failed\n");
|
||||||
|
|
||||||
hc = InternetConnectW(hi, NULL, 0, NULL, NULL, 0, 0, 0);
|
hc = InternetConnectW(hi, NULL, 0, NULL, NULL, 0, 0, 0);
|
||||||
|
@ -644,6 +650,11 @@ static void test_IsDomainLegalCookieDomainW(void)
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
ret = pIsDomainLegalCookieDomainW(NULL, NULL);
|
ret = pIsDomainLegalCookieDomainW(NULL, NULL);
|
||||||
error = GetLastError();
|
error = GetLastError();
|
||||||
|
if (!ret && error == ERROR_CALL_NOT_IMPLEMENTED)
|
||||||
|
{
|
||||||
|
win_skip("IsDomainLegalCookieDomainW is not implemented\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
ok(!ret ||
|
ok(!ret ||
|
||||||
broken(ret), /* IE6 */
|
broken(ret), /* IE6 */
|
||||||
"IsDomainLegalCookieDomainW succeeded\n");
|
"IsDomainLegalCookieDomainW succeeded\n");
|
||||||
|
|
Loading…
Reference in New Issue