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
237d5636
Commit
237d5636
authored
Oct 24, 2019
by
Sven Baars
Committed by
Alexandre Julliard
Oct 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/tests: Skip some FTP tests when no connection can be made.
Signed-off-by:
Sven Baars
<
sven.wine@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
14fd1ccd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
ftp.c
dlls/wininet/tests/ftp.c
+7
-7
No files found.
dlls/wininet/tests/ftp.c
View file @
237d5636
...
...
@@ -63,7 +63,7 @@ static void test_connect(HINTERNET hInternet)
HINTERNET
hFtp
;
/* Try a few username/password combinations:
* anonymous :
NULL
* anonymous :
IEUser@
* NULL : IEUser@
* NULL : NULL
* "" : IEUser@
...
...
@@ -72,14 +72,14 @@ static void test_connect(HINTERNET hInternet)
SetLastError
(
0xdeadbeef
);
hFtp
=
InternetConnectA
(
hInternet
,
"ftp.winehq.org"
,
INTERNET_DEFAULT_FTP_PORT
,
"anonymous"
,
"IEUser@"
,
INTERNET_SERVICE_FTP
,
INTERNET_FLAG_PASSIVE
,
0
);
if
(
hFtp
)
/* some servers accept an empty password */
if
(
!
hFtp
)
{
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"ERROR_SUCCESS, got %d
\n
"
,
GetLastError
());
InternetCloseHandle
(
hFtp
)
;
skip
(
"No ftp connection could be made to ftp.winehq.org %u
\n
"
,
GetLastError
());
return
;
}
else
ok
(
GetLastError
()
==
ERROR_INTERNET_LOGIN_FAILURE
,
"Expected ERROR_INTERNET_LOGIN_FAILURE, got %d
\n
"
,
GetLastError
()
);
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
GetLastError
());
InternetCloseHandle
(
hFtp
);
SetLastError
(
0xdeadbeef
);
hFtp
=
InternetConnectA
(
hInternet
,
"ftp.winehq.org"
,
INTERNET_DEFAULT_FTP_PORT
,
NULL
,
"IEUser@"
,
INTERNET_SERVICE_FTP
,
INTERNET_FLAG_PASSIVE
,
0
);
...
...
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