mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 00:03:03 +00:00
[WINESYNC] 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> wine commit id 237d5636271a1a78b02a0eb7feaab7dfb9dfed57 by Sven Baars <sven.wine@gmail.com>
This commit is contained in:
parent
d9efda8225
commit
3e2348037b
2 changed files with 8 additions and 10 deletions
|
@ -63,7 +63,7 @@ static void test_connect(HINTERNET hInternet)
|
||||||
HINTERNET hFtp;
|
HINTERNET hFtp;
|
||||||
|
|
||||||
/* Try a few username/password combinations:
|
/* Try a few username/password combinations:
|
||||||
* anonymous : NULL
|
* anonymous : IEUser@
|
||||||
* NULL : IEUser@
|
* NULL : IEUser@
|
||||||
* NULL : NULL
|
* NULL : NULL
|
||||||
* "" : IEUser@
|
* "" : IEUser@
|
||||||
|
@ -72,16 +72,14 @@ static void test_connect(HINTERNET hInternet)
|
||||||
|
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
hFtp = InternetConnectA(hInternet, "ftp.winehq.org", INTERNET_DEFAULT_FTP_PORT, "anonymous", "IEUser@", INTERNET_SERVICE_FTP, INTERNET_FLAG_PASSIVE, 0);
|
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)
|
||||||
{
|
{
|
||||||
ros_skip_flaky
|
skip("No ftp connection could be made to ftp.winehq.org %u\n", GetLastError());
|
||||||
ok ( GetLastError() == ERROR_SUCCESS, "ERROR_SUCCESS, got %d\n", GetLastError());
|
return;
|
||||||
InternetCloseHandle(hFtp);
|
|
||||||
}
|
}
|
||||||
else
|
ok(GetLastError() == ERROR_SUCCESS,
|
||||||
ros_skip_flaky
|
"Expected ERROR_SUCCESS, got %d\n", GetLastError());
|
||||||
ok ( GetLastError() == ERROR_INTERNET_LOGIN_FAILURE,
|
InternetCloseHandle(hFtp);
|
||||||
"Expected ERROR_INTERNET_LOGIN_FAILURE, got %d\n", GetLastError());
|
|
||||||
|
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
hFtp = InternetConnectA(hInternet, "ftp.winehq.org", INTERNET_DEFAULT_FTP_PORT, NULL, "IEUser@", INTERNET_SERVICE_FTP, INTERNET_FLAG_PASSIVE, 0);
|
hFtp = InternetConnectA(hInternet, "ftp.winehq.org", INTERNET_DEFAULT_FTP_PORT, NULL, "IEUser@", INTERNET_SERVICE_FTP, INTERNET_FLAG_PASSIVE, 0);
|
||||||
|
|
|
@ -5,4 +5,4 @@ files:
|
||||||
include/wininet.h: sdk/include/psdk/wininet.h
|
include/wininet.h: sdk/include/psdk/wininet.h
|
||||||
include/winineti.h: sdk/include/psdk/winineti.h
|
include/winineti.h: sdk/include/psdk/winineti.h
|
||||||
tags:
|
tags:
|
||||||
wine: 8b2d3857136c50d56c706a7f880fc605b325e334
|
wine: 237d5636271a1a78b02a0eb7feaab7dfb9dfed57
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue