Commit 99129d20 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

msi: Add a test for formatting records with strings.

parent ed663fe2
...@@ -1628,6 +1628,17 @@ static void test_formatrecord(void) ...@@ -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 );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment