Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
de3b5be3
Commit
de3b5be3
authored
Oct 05, 2006
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/tests: Win64 printf format warning fixes.
parent
f4ac836f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
14 deletions
+13
-14
Makefile.in
dlls/wininet/tests/Makefile.in
+0
-1
http.c
dlls/wininet/tests/http.c
+0
-0
internet.c
dlls/wininet/tests/internet.c
+13
-13
url.c
dlls/wininet/tests/url.c
+0
-0
No files found.
dlls/wininet/tests/Makefile.in
View file @
de3b5be3
...
...
@@ -4,7 +4,6 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
TESTDLL
=
wininet.dll
IMPORTS
=
wininet ws2_32 kernel32
EXTRADEFS
=
-DWINE_NO_LONG_AS_INT
CTESTS
=
\
generated.c
\
...
...
dlls/wininet/tests/http.c
View file @
de3b5be3
This diff is collapsed.
Click to expand it.
dlls/wininet/tests/internet.c
View file @
de3b5be3
...
...
@@ -43,9 +43,9 @@ static void InternetQueryOptionA_test(void)
len
=
strlen
(
useragent
)
+
1
;
retval
=
InternetQueryOptionA
(
hinet
,
INTERNET_OPTION_USER_AGENT
,
NULL
,
&
len
);
err
=
GetLastError
();
ok
(
len
==
strlen
(
useragent
)
+
1
,
"Got wrong user agent length %
l
d instead of %d
\n
"
,
len
,
lstrlenA
(
useragent
));
ok
(
len
==
strlen
(
useragent
)
+
1
,
"Got wrong user agent length %d instead of %d
\n
"
,
len
,
lstrlenA
(
useragent
));
ok
(
retval
==
0
,
"Got wrong return value %d
\n
"
,
retval
);
todo_wine
ok
(
err
==
ERROR_INSUFFICIENT_BUFFER
,
"Got wrong error code%
l
d
\n
"
,
err
);
todo_wine
ok
(
err
==
ERROR_INSUFFICIENT_BUFFER
,
"Got wrong error code%d
\n
"
,
err
);
SetLastError
(
0xdeadbeef
);
len
=
strlen
(
useragent
)
+
1
;
...
...
@@ -53,9 +53,9 @@ static void InternetQueryOptionA_test(void)
retval
=
InternetQueryOptionA
(
hinet
,
INTERNET_OPTION_USER_AGENT
,
buffer
,
&
len
);
err
=
GetLastError
();
todo_wine
ok
(
!
strcmp
(
useragent
,
buffer
),
"Got wrong user agent string %s instead of %s
\n
"
,
buffer
,
useragent
);
todo_wine
ok
(
len
==
strlen
(
useragent
),
"Got wrong user agent length %
l
d instead of %d
\n
"
,
len
,
lstrlenA
(
useragent
));
todo_wine
ok
(
len
==
strlen
(
useragent
),
"Got wrong user agent length %d instead of %d
\n
"
,
len
,
lstrlenA
(
useragent
));
todo_wine
ok
(
retval
==
1
,
"Got wrong return value %d
\n
"
,
retval
);
ok
(
err
==
0xdeadbeef
,
"Got wrong error code %
l
d
\n
"
,
err
);
ok
(
err
==
0xdeadbeef
,
"Got wrong error code %d
\n
"
,
err
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
SetLastError
(
0xdeadbeef
);
...
...
@@ -63,9 +63,9 @@ static void InternetQueryOptionA_test(void)
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
100
);
retval
=
InternetQueryOptionA
(
hinet
,
INTERNET_OPTION_USER_AGENT
,
buffer
,
&
len
);
err
=
GetLastError
();
todo_wine
ok
(
len
==
strlen
(
useragent
)
+
1
,
"Got wrong user agent length %
l
d instead of %d
\n
"
,
len
,
lstrlenA
(
useragent
)
+
1
);
todo_wine
ok
(
len
==
strlen
(
useragent
)
+
1
,
"Got wrong user agent length %d instead of %d
\n
"
,
len
,
lstrlenA
(
useragent
)
+
1
);
ok
(
!
retval
,
"Got wrong return value %d
\n
"
,
retval
);
todo_wine
ok
(
err
==
ERROR_INSUFFICIENT_BUFFER
,
"Got wrong error code %
l
d
\n
"
,
err
);
todo_wine
ok
(
err
==
ERROR_INSUFFICIENT_BUFFER
,
"Got wrong error code %d
\n
"
,
err
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
hurl
=
InternetConnectA
(
hinet
,
"www.winehq.com"
,
INTERNET_DEFAULT_HTTP_PORT
,
NULL
,
NULL
,
INTERNET_SERVICE_HTTP
,
0
,
0
);
...
...
@@ -74,9 +74,9 @@ static void InternetQueryOptionA_test(void)
len
=
0
;
retval
=
InternetQueryOptionA
(
hurl
,
INTERNET_OPTION_USER_AGENT
,
NULL
,
&
len
);
err
=
GetLastError
();
ok
(
len
==
0
,
"Got wrong user agent length %
l
d instead of 0
\n
"
,
len
);
ok
(
len
==
0
,
"Got wrong user agent length %d instead of 0
\n
"
,
len
);
ok
(
retval
==
0
,
"Got wrong return value %d
\n
"
,
retval
);
todo_wine
ok
(
err
==
ERROR_INTERNET_INCORRECT_HANDLE_TYPE
,
"Got wrong error code %
l
d
\n
"
,
err
);
todo_wine
ok
(
err
==
ERROR_INTERNET_INCORRECT_HANDLE_TYPE
,
"Got wrong error code %d
\n
"
,
err
);
InternetCloseHandle
(
hurl
);
InternetCloseHandle
(
hinet
);
...
...
@@ -88,9 +88,9 @@ static void InternetQueryOptionA_test(void)
len
=
0
;
retval
=
InternetQueryOptionA
(
hinet
,
INTERNET_OPTION_USER_AGENT
,
NULL
,
&
len
);
err
=
GetLastError
();
todo_wine
ok
(
len
==
1
,
"Got wrong user agent length %
l
d instead of %d
\n
"
,
len
,
1
);
todo_wine
ok
(
len
==
1
,
"Got wrong user agent length %d instead of %d
\n
"
,
len
,
1
);
ok
(
retval
==
0
,
"Got wrong return value %d
\n
"
,
retval
);
todo_wine
ok
(
err
==
ERROR_INSUFFICIENT_BUFFER
,
"Got wrong error code%
l
d
\n
"
,
err
);
todo_wine
ok
(
err
==
ERROR_INSUFFICIENT_BUFFER
,
"Got wrong error code%d
\n
"
,
err
);
InternetCloseHandle
(
hinet
);
...
...
@@ -100,9 +100,9 @@ static void InternetQueryOptionA_test(void)
len
=
0
;
retval
=
InternetQueryOptionA
(
hinet
,
INTERNET_OPTION_USER_AGENT
,
NULL
,
&
len
);
err
=
GetLastError
();
todo_wine
ok
(
len
==
1
,
"Got wrong user agent length %
l
d instead of %d
\n
"
,
len
,
1
);
todo_wine
ok
(
len
==
1
,
"Got wrong user agent length %d instead of %d
\n
"
,
len
,
1
);
ok
(
retval
==
0
,
"Got wrong return value %d
\n
"
,
retval
);
todo_wine
ok
(
err
==
ERROR_INSUFFICIENT_BUFFER
,
"Got wrong error code%
l
d
\n
"
,
err
);
todo_wine
ok
(
err
==
ERROR_INSUFFICIENT_BUFFER
,
"Got wrong error code%d
\n
"
,
err
);
InternetCloseHandle
(
hinet
);
}
...
...
@@ -115,7 +115,7 @@ static void test_get_cookie(void)
SetLastError
(
0xdeadbeef
);
ret
=
InternetGetCookie
(
"http://www.example.com"
,
NULL
,
NULL
,
&
len
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_NO_MORE_ITEMS
,
"InternetGetCookie should have failed with %s and error %
l
d
\n
"
,
"InternetGetCookie should have failed with %s and error %d
\n
"
,
ret
?
"TRUE"
:
"FALSE"
,
GetLastError
());
}
...
...
dlls/wininet/tests/url.c
View file @
de3b5be3
This diff is collapsed.
Click to expand it.
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