Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
dd943665
Commit
dd943665
authored
Jan 30, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Feb 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/tests: Fix tests failures on W2K and below and some early XP.
parent
f545468a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
10 deletions
+26
-10
internet.c
dlls/wininet/tests/internet.c
+26
-10
No files found.
dlls/wininet/tests/internet.c
View file @
dd943665
...
...
@@ -546,7 +546,9 @@ static void test_IsDomainLegalCookieDomainW(void)
SetLastError
(
0xdeadbeef
);
ret
=
pIsDomainLegalCookieDomainW
(
NULL
,
NULL
);
error
=
GetLastError
();
ok
(
!
ret
,
"IsDomainLegalCookieDomainW succeeded
\n
"
);
ok
(
!
ret
||
broken
(
ret
),
/* Win98, NT4, W2K, XP (some) */
"IsDomainLegalCookieDomainW succeeded
\n
"
);
ok
(
error
==
ERROR_INVALID_PARAMETER
,
"got %u expected ERROR_INVALID_PARAMETER
\n
"
,
error
);
SetLastError
(
0xdeadbeef
);
...
...
@@ -565,25 +567,33 @@ static void test_IsDomainLegalCookieDomainW(void)
ret
=
pIsDomainLegalCookieDomainW
(
empty
,
gmail_com
);
error
=
GetLastError
();
ok
(
!
ret
,
"IsDomainLegalCookieDomainW succeeded
\n
"
);
ok
(
error
==
ERROR_INVALID_NAME
,
"got %u expected ERROR_INVALID_NAME
\n
"
,
error
);
ok
(
error
==
ERROR_INVALID_NAME
||
broken
(
error
==
ERROR_INVALID_PARAMETER
),
/* Win98, NT4, W2K, XP (some) */
"got %u expected ERROR_INVALID_NAME
\n
"
,
error
);
SetLastError
(
0xdeadbeef
);
ret
=
pIsDomainLegalCookieDomainW
(
com
,
empty
);
error
=
GetLastError
();
ok
(
!
ret
,
"IsDomainLegalCookieDomainW succeeded
\n
"
);
ok
(
error
==
ERROR_INVALID_NAME
,
"got %u expected ERROR_INVALID_NAME
\n
"
,
error
);
ok
(
error
==
ERROR_INVALID_NAME
||
broken
(
error
==
ERROR_INVALID_PARAMETER
),
/* Win98, NT4, W2K, XP (some) */
"got %u expected ERROR_INVALID_NAME
\n
"
,
error
);
SetLastError
(
0xdeadbeef
);
ret
=
pIsDomainLegalCookieDomainW
(
gmail_com
,
dot
);
error
=
GetLastError
();
ok
(
!
ret
,
"IsDomainLegalCookieDomainW succeeded
\n
"
);
ok
(
error
==
ERROR_INVALID_NAME
,
"got %u expected ERROR_INVALID_NAME
\n
"
,
error
);
ok
(
error
==
ERROR_INVALID_NAME
||
broken
(
error
==
0xdeadbeef
),
/* Win98, NT4, W2K, XP (some) */
"got %u expected ERROR_INVALID_NAME
\n
"
,
error
);
SetLastError
(
0xdeadbeef
);
ret
=
pIsDomainLegalCookieDomainW
(
dot
,
gmail_com
);
error
=
GetLastError
();
ok
(
!
ret
,
"IsDomainLegalCookieDomainW succeeded
\n
"
);
ok
(
error
==
ERROR_INVALID_NAME
,
"got %u expected ERROR_INVALID_NAME
\n
"
,
error
);
ok
(
error
==
ERROR_INVALID_NAME
||
broken
(
error
==
0xdeadbeef
),
/* Win98, NT4, W2K, XP (some) */
"got %u expected ERROR_INVALID_NAME
\n
"
,
error
);
SetLastError
(
0xdeadbeef
);
ret
=
pIsDomainLegalCookieDomainW
(
com
,
com
);
...
...
@@ -595,13 +605,17 @@ static void test_IsDomainLegalCookieDomainW(void)
ret
=
pIsDomainLegalCookieDomainW
(
com
,
dot_com
);
error
=
GetLastError
();
ok
(
!
ret
,
"IsDomainLegalCookieDomainW succeeded
\n
"
);
ok
(
error
==
ERROR_INVALID_NAME
,
"got %u expected ERROR_INVALID_NAME
\n
"
,
error
);
ok
(
error
==
ERROR_INVALID_NAME
||
broken
(
error
==
0xdeadbeef
),
/* Win98, NT4, W2K, XP (some) */
"got %u expected ERROR_INVALID_NAME
\n
"
,
error
);
SetLastError
(
0xdeadbeef
);
ret
=
pIsDomainLegalCookieDomainW
(
dot_com
,
com
);
error
=
GetLastError
();
ok
(
!
ret
,
"IsDomainLegalCookieDomainW succeeded
\n
"
);
ok
(
error
==
ERROR_INVALID_NAME
,
"got %u expected ERROR_INVALID_NAME
\n
"
,
error
);
ok
(
error
==
ERROR_INVALID_NAME
||
broken
(
error
==
0xdeadbeef
),
/* Win98, NT4, W2K, XP (some) */
"got %u expected ERROR_INVALID_NAME
\n
"
,
error
);
SetLastError
(
0xdeadbeef
);
ret
=
pIsDomainLegalCookieDomainW
(
com
,
gmail_com
);
...
...
@@ -615,7 +629,7 @@ static void test_IsDomainLegalCookieDomainW(void)
SetLastError
(
0xdeadbeef
);
ret
=
pIsDomainLegalCookieDomainW
(
gmail_co_uk
,
co_uk
);
error
=
GetLastError
();
ok
(
!
ret
,
"IsDomainLegalCookieDomainW
fail
ed
\n
"
);
ok
(
!
ret
,
"IsDomainLegalCookieDomainW
succeed
ed
\n
"
);
ok
(
error
==
0xdeadbeef
,
"got %u expected 0xdeadbeef
\n
"
,
error
);
ret
=
pIsDomainLegalCookieDomainW
(
uk
,
co_uk
);
...
...
@@ -633,8 +647,10 @@ static void test_IsDomainLegalCookieDomainW(void)
SetLastError
(
0xdeadbeef
);
ret
=
pIsDomainLegalCookieDomainW
(
dot_gmail_com
,
mail_gmail_com
);
error
=
GetLastError
();
ok
(
!
ret
,
"IsDomainLegalCookieDomainW failed
\n
"
);
ok
(
error
==
ERROR_INVALID_NAME
,
"got %u expected ERROR_INVALID_NAME
\n
"
,
error
);
ok
(
!
ret
,
"IsDomainLegalCookieDomainW succeeded
\n
"
);
ok
(
error
==
ERROR_INVALID_NAME
||
broken
(
error
==
0xdeadbeef
),
/* Win98, NT4, W2K, XP (some) */
"got %u expected ERROR_INVALID_NAME
\n
"
,
error
);
ret
=
pIsDomainLegalCookieDomainW
(
gmail_com
,
mail_gmail_com
);
ok
(
ret
,
"IsDomainLegalCookieDomainW failed
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment