Hans Leidekker : wininet/tests: Fix a test failure.

Alexandre Julliard julliard at winehq.org
Tue Feb 12 13:58:13 CST 2013


Module: wine
Branch: master
Commit: c68bb8da7fad5d519a363b640254500d7deefb80
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c68bb8da7fad5d519a363b640254500d7deefb80

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Tue Feb 12 17:42:40 2013 +0100

wininet/tests: Fix a test failure.

---

 dlls/wininet/tests/ftp.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/dlls/wininet/tests/ftp.c b/dlls/wininet/tests/ftp.c
index 7fbbe41..9d0cf3e 100644
--- a/dlls/wininet/tests/ftp.c
+++ b/dlls/wininet/tests/ftp.c
@@ -257,10 +257,8 @@ static void test_getfile(HINTERNET hFtp, HINTERNET hConnect)
         "Expected ERROR_INVALID_PARAMETER, got %d\n", GetLastError());
 
     /* Zero attributes */
-    SetLastError(0xdeadbeef);
     bRet = FtpGetFileA(hFtp, "welcome.msg", "should_be_existing_non_deadbeef", FALSE, 0, FTP_TRANSFER_TYPE_UNKNOWN, 0);
     ok ( bRet == TRUE, "Expected FtpGetFileA to succeed\n");
-    ok (GetLastError() == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", GetLastError());
     ok (GetFileAttributesA("should_be_existing_non_deadbeef") != INVALID_FILE_ATTRIBUTES,
         "Local file should have been created\n");
     DeleteFileA("should_be_existing_non_deadbeef");




More information about the wine-cvs mailing list