Mike McCormack : msi: Fix some test cases to pass against win2k.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jun 12 10:02:23 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: a302ec19bd96d7d1343c7aca9a4e591b50e1a034
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=a302ec19bd96d7d1343c7aca9a4e591b50e1a034
Author: Mike McCormack <mike at codeweavers.com>
Date: Mon Jun 12 13:19:51 2006 +0900
msi: Fix some test cases to pass against win2k.
---
dlls/msi/tests/format.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/dlls/msi/tests/format.c b/dlls/msi/tests/format.c
index 6016c62..aaa57aa 100644
--- a/dlls/msi/tests/format.c
+++ b/dlls/msi/tests/format.c
@@ -1037,14 +1037,12 @@ static void test_formatrecord(void)
ok( 0 == strcmp(buffer,"hoo{{boo }}"), "wrong output\n");
ok( r == ERROR_SUCCESS, "format failed\n");
- todo_wine {
r = MsiRecordSetString(hrec, 0, "{[1{{boo}}]}");
r = MsiRecordSetString(hrec, 1, "hoo");
sz = sizeof buffer;
r = MsiFormatRecord(0, hrec, buffer, &sz);
- ok( sz == 3, "size wrong: got %lu, expected 3\n", sz);
- ok( 0 == strcmp(buffer,"[1]"), "wrong output: got %s, expected [1]\n", buffer);
- }
+ ok( sz == 12, "size wrong: got %lu, expected 12\n", sz);
+ ok( 0 == strcmp(buffer,"{[1{{boo}}]}"), "wrong output: got %s, expected [1]\n", buffer);
ok( r == ERROR_SUCCESS, "format failed\n");
todo_wine {
@@ -1052,8 +1050,8 @@ static void test_formatrecord(void)
r = MsiRecordSetString(hrec, 1, "hoo");
sz = sizeof buffer;
r = MsiFormatRecord(0, hrec, buffer, &sz);
- ok( sz == 3, "size wrong: got %lu, expected 3\n", sz);
- ok( 0 == strcmp(buffer,"[1]"), "wrong output: got %s, expected [1]\n", buffer);
+ ok( sz == 6, "size wrong: got %lu, expected 3\n", sz);
+ ok( 0 == strcmp(buffer,"{{hoo}"), "wrong output: got %s, expected [1]\n", buffer);
}
ok( r == ERROR_SUCCESS, "format failed\n");
More information about the wine-cvs
mailing list