msi: Add a test for formatting records with strings.

This commit is contained in:
Mike McCormack 2006-11-21 15:21:13 +09:00 committed by Alexandre Julliard
parent ed663fe216
commit 99129d20a6
1 changed files with 11 additions and 0 deletions

View File

@ -1628,6 +1628,17 @@ static void test_formatrecord(void)
ok( 0 == strcmp(buffer,"}}"), "wrong output (%s)\n",buffer); ok( 0 == strcmp(buffer,"}}"), "wrong output (%s)\n",buffer);
} }
sz = sizeof buffer;
MsiRecordSetInteger(hrec, 1, 100);
MsiRecordSetInteger(hrec, 2, -100);
MsiRecordSetString(hrec, 0, "[1] [2]");
r = MsiFormatRecord(0, hrec, buffer, &sz);
ok( r == ERROR_SUCCESS, "format failed\n");
todo_wine {
ok( sz == 8, "size wrong(%i)\n",sz);
ok( 0 == strcmp(buffer,"100 -100"), "wrong output (%s)\n",buffer);
}
MsiCloseHandle( hrec ); MsiCloseHandle( hrec );
} }