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
63806a94
Commit
63806a94
authored
Feb 21, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Feb 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/tests: Add a few more tests.
parent
cda92aeb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
1 deletion
+43
-1
ftp.c
dlls/wininet/tests/ftp.c
+43
-1
No files found.
dlls/wininet/tests/ftp.c
View file @
63806a94
...
...
@@ -470,8 +470,23 @@ static void test_openfile(void)
{
BOOL
bRet
;
HINTERNET
hOpenFile2
;
HANDLE
hFile
;
/* We have a handle so all ftp calls should fail (TODO: Put all ftp-calls in here) */
SetLastError
(
0xdeadbeef
);
bRet
=
FtpCreateDirectoryA
(
hFtp
,
"new_directory_deadbeef"
);
ok
(
bRet
==
FALSE
,
"Expected FtpCreateDirectoryA to fail
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_FTP_TRANSFER_IN_PROGRESS
,
"Expected ERROR_FTP_TRANSFER_IN_PROGRESS, got %d
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
bRet
=
FtpDeleteFileA
(
hFtp
,
"non_existent_file_deadbeef"
);
ok
(
bRet
==
FALSE
,
"Expected FtpDeleteFileA to fail
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_FTP_TRANSFER_IN_PROGRESS
,
"Expected ERROR_FTP_TRANSFER_IN_PROGRESS, got %d
\n
"
,
GetLastError
());
/* We have a handle so all ftp calls should fail (TODO: Put more ftp-calls in here) */
SetLastError
(
0xdeadbeef
);
bRet
=
FtpGetFileA
(
hFtp
,
"welcome.msg"
,
"should_be_non_existing_deadbeef"
,
FALSE
,
FILE_ATTRIBUTE_NORMAL
,
FTP_TRANSFER_TYPE_UNKNOWN
,
0
);
ok
(
bRet
==
FALSE
,
"Expected FtpGetFileA to fail
\n
"
);
...
...
@@ -485,6 +500,33 @@ static void test_openfile(void)
ok
(
GetLastError
()
==
ERROR_FTP_TRANSFER_IN_PROGRESS
,
"Expected ERROR_FTP_TRANSFER_IN_PROGRESS, got %d
\n
"
,
GetLastError
());
InternetCloseHandle
(
hOpenFile2
);
/* Just in case */
/* Create a temporary local file */
SetLastError
(
0xdeadbeef
);
hFile
=
CreateFileA
(
"now_existing_local"
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
0
,
NULL
);
ok
(
hFile
!=
NULL
,
"Error creating a local file : %d
\n
"
,
GetLastError
());
CloseHandle
(
hFile
);
SetLastError
(
0xdeadbeef
);
bRet
=
FtpPutFileA
(
hFtp
,
"now_existing_local"
,
"non_existing_remote"
,
FTP_TRANSFER_TYPE_UNKNOWN
,
0
);
ok
(
bRet
==
FALSE
,
"Expected FtpPutFileA to fail
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_FTP_TRANSFER_IN_PROGRESS
,
"Expected ERROR_FTP_TRANSFER_IN_PROGRESS, got %d
\n
"
,
GetLastError
());
DeleteFileA
(
"now_existing_local"
);
SetLastError
(
0xdeadbeef
);
bRet
=
FtpRemoveDirectoryA
(
hFtp
,
"should_be_non_existing_deadbeef_dir"
);
ok
(
bRet
==
FALSE
,
"Expected FtpRemoveDirectoryA to fail
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_FTP_TRANSFER_IN_PROGRESS
,
"Expected ERROR_FTP_TRANSFER_IN_PROGRESS, got %d
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
bRet
=
FtpRenameFileA
(
hFtp
,
"should_be_non_existing_deadbeef"
,
"new"
);
ok
(
bRet
==
FALSE
,
"Expected FtpRenameFileA to fail
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_FTP_TRANSFER_IN_PROGRESS
,
"Expected ERROR_FTP_TRANSFER_IN_PROGRESS, got %d
\n
"
,
GetLastError
());
}
InternetCloseHandle
(
hOpenFile
);
...
...
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