James Hawkins : msi: Fix a test that fails in win95.
Alexandre Julliard
julliard at winehq.org
Wed Oct 1 14:09:36 CDT 2008
Module: wine
Branch: master
Commit: 48e6e584d312026def717d8c6cfa0a0561074c90
URL: http://source.winehq.org/git/wine.git/?a=commit;h=48e6e584d312026def717d8c6cfa0a0561074c90
Author: James Hawkins <jhawkins at codeweavers.com>
Date: Tue Sep 30 20:56:34 2008 -0500
msi: Fix a test that fails in win95.
---
dlls/msi/tests/msi.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/dlls/msi/tests/msi.c b/dlls/msi/tests/msi.c
index 2b00314..aae8cfc 100644
--- a/dlls/msi/tests/msi.c
+++ b/dlls/msi/tests/msi.c
@@ -435,6 +435,8 @@ static void test_MsiGetFileHash(void)
for (i = 0; i < sizeof(hash_data) / sizeof(hash_data[0]); i++)
{
+ int ret;
+
create_file(name, hash_data[i].data, hash_data[i].size);
memset(&hash, 0, sizeof(MSIFILEHASHINFO));
@@ -442,7 +444,11 @@ static void test_MsiGetFileHash(void)
r = pMsiGetFileHashA(name, 0, &hash);
ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r);
- ok(!memcmp(&hash, &hash_data[i].hash, HASHSIZE), "Hash incorrect\n");
+
+ ret = memcmp(&hash, &hash_data[i].hash, HASHSIZE);
+ ok(ret == 0 ||
+ broken(ret != 0), /* win95 */
+ "Hash incorrect\n");
DeleteFile(name);
}
More information about the wine-cvs
mailing list