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
2ba1cdad
Commit
2ba1cdad
authored
Feb 12, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Feb 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/ftp.c: Add another test.
parent
d20833fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
ftp.c
dlls/wininet/tests/ftp.c
+22
-0
No files found.
dlls/wininet/tests/ftp.c
View file @
2ba1cdad
...
...
@@ -42,6 +42,19 @@
#include "wine/test.h"
static
void
test_getfile_no_open
(
void
)
{
BOOL
bRet
;
/* Invalid internet handle, the others are valid parameters */
SetLastError
(
0xdeadbeef
);
bRet
=
FtpGetFileA
(
NULL
,
"welcome.msg"
,
"should_be_non_existing_deadbeef"
,
FALSE
,
FILE_ATTRIBUTE_NORMAL
,
FTP_TRANSFER_TYPE_UNKNOWN
,
0
);
ok
(
bRet
==
FALSE
,
"Expected FtpGetFileA to fail
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_INTERNET_NOT_INITIALIZED
,
"Expected ERROR_INVALID_HANDLE, got %d
\n
"
,
GetLastError
());
}
static
void
test_connect
(
void
)
{
HINTERNET
hInternet
,
hFtp
;
...
...
@@ -727,6 +740,15 @@ static void test_renamefile(void)
START_TEST
(
ftp
)
{
/* The first call should always be a proper InternetOpen, if not
* several calls will return ERROR_INTERNET_NOT_INITIALIZED when
* all parameters are correct but no session handle is given. Whereas
* the same call will return ERROR_INVALID_HANDLE if an InternetOpen
* is done before.
* The following test will show that behaviour, where the tests inside
* the other sub-tests will show the other situation.
*/
test_getfile_no_open
();
test_connect
();
test_createdir
();
test_deletefile
();
...
...
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