James Hawkins : advpack: Fix a failing test in win98.

Alexandre Julliard julliard at winehq.org
Tue Aug 5 07:26:27 CDT 2008


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

Author: James Hawkins <jhawkins at codeweavers.com>
Date:   Mon Aug  4 17:52:47 2008 -0500

advpack: Fix a failing test in win98.

---

 dlls/advpack/tests/files.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/dlls/advpack/tests/files.c b/dlls/advpack/tests/files.c
index d018975..9ddd3bc 100644
--- a/dlls/advpack/tests/files.c
+++ b/dlls/advpack/tests/files.c
@@ -97,6 +97,7 @@ static BOOL check_ini_file_attr(LPSTR filename)
 
 static void test_AddDelBackupEntry(void)
 {
+    BOOL ret;
     HRESULT res;
     CHAR path[MAX_PATH];
     CHAR windir[MAX_PATH];
@@ -165,7 +166,10 @@ static void test_AddDelBackupEntry(void)
     res = pAddDelBackupEntry("one\0three\0", NULL, "basename", AADBE_DEL_ENTRY);
     SetFileAttributesA(path, FILE_ATTRIBUTE_NORMAL);
     ok(res == S_OK, "Expected S_OK, got %d\n", res);
-    ok(DeleteFileA(path), "Expected path to exist\n");
+    ret = DeleteFileA(path);
+    ok(ret == TRUE ||
+       broken(ret == FALSE), /* win98 */
+       "Expected path to exist\n");
 }
 
 /* the FCI callbacks */




More information about the wine-cvs mailing list