Paul Vriens : wininet/tests: Fix a test failure on some Win98 boxes.

Alexandre Julliard julliard at winehq.org
Tue Nov 11 08:35:45 CST 2008


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Mon Nov 10 19:18:14 2008 +0100

wininet/tests: Fix a test failure on some Win98 boxes.

---

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

diff --git a/dlls/wininet/tests/ftp.c b/dlls/wininet/tests/ftp.c
index 34aa68f..335215e 100644
--- a/dlls/wininet/tests/ftp.c
+++ b/dlls/wininet/tests/ftp.c
@@ -385,7 +385,9 @@ static void test_openfile(HINTERNET hFtp, HINTERNET hConnect)
     SetLastError(0xdeadbeef);
     hOpenFile = FtpOpenFileA(hFtp, "welcome.msg", GENERIC_READ, FTP_TRANSFER_TYPE_ASCII, 0);
     ok ( hOpenFile != NULL, "Expected FtpOpenFileA to succeed\n");
-    ok ( GetLastError() == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %u\n", GetLastError());
+    ok ( GetLastError() == ERROR_SUCCESS ||
+        broken(GetLastError() == ERROR_FILE_NOT_FOUND), /* Win98 */
+        "Expected ERROR_SUCCESS, got %u\n", GetLastError());
 
     if (hOpenFile)
     {




More information about the wine-cvs mailing list