James Hawkins : msi: Fix two MsiFormatRecord tests.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Sep 7 07:12:34 CDT 2006
Module: wine
Branch: master
Commit: 16769b26b2bbd7adbca85eb93fe9b2c4dcd944f3
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=16769b26b2bbd7adbca85eb93fe9b2c4dcd944f3
Author: James Hawkins <truiken at gmail.com>
Date: Wed Sep 6 13:51:06 2006 -0700
msi: Fix two MsiFormatRecord tests.
---
dlls/msi/tests/format.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/dlls/msi/tests/format.c b/dlls/msi/tests/format.c
index e56b457..5a5cdd1 100644
--- a/dlls/msi/tests/format.c
+++ b/dlls/msi/tests/format.c
@@ -1835,14 +1835,11 @@ static void test_formatrecord_tables(voi
/* component with INSTALLSTATE_LOCAL */
size = MAX_PATH;
- MsiRecordSetString( hrec, 0, "[$temporal]" );
+ MsiRecordSetString( hrec, 1, "[$temporal]" );
r = MsiFormatRecord( hpkg, hrec, buf, &size );
ok( r == ERROR_SUCCESS, "format record failed: %d\n", r);
- todo_wine
- {
- ok( !lstrcmp( buf, "1: C:\\I am a really long directory\\ " ),
- "Expected '1: C:\\I am a really long directory\\ ', got %s\n", buf);
- }
+ ok( !lstrcmp( buf, "1: C:\\I am a really long directory\\ " ),
+ "Expected '1: C:\\I am a really long directory\\ ', got %s\n", buf);
r = MsiSetComponentState( hpkg, "temporal", INSTALLSTATE_SOURCE );
ok( r == ERROR_SUCCESS, "failed to set install state: %d\n", r);
@@ -1857,7 +1854,7 @@ static void test_formatrecord_tables(voi
ok( r == ERROR_SUCCESS, "format record failed: %d\n", r);
todo_wine
{
- ok( !lstrcmp( buf, expected ), "Expected '%s', got %s\n", buf, expected);
+ ok( !lstrcmp( buf, expected ), "Expected '%s', got %s\n", expected, buf);
}
DeleteFile( "C:\\I am a really long directory\\temporal.txt" );
More information about the wine-cvs
mailing list