Commit d62aa01e authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

msi: Add a test for MsiFormatRecord with integer fields.

parent 15a7d3b2
......@@ -618,6 +618,18 @@ static void test_formatrecord(void)
ok( r == ERROR_SUCCESS, "format failed\n");
ok( sz == 11, "size wrong\n");
ok( 0 == strcmp(buffer,"boo [~] hoo"), "wrong output (%s)\n",buffer);
r = MsiRecordSetString(hrec, 0, "[1]");
r = MsiRecordSetInteger(hrec, 1, 123456);
ok( r == ERROR_SUCCESS, "set integer failed\n");
sz = sizeof buffer;
r = MsiFormatRecord(0, hrec, buffer, &sz);
ok( r == ERROR_SUCCESS, "format failed\n");
todo_wine{
ok( sz == 6, "size wrong\n");
ok( 0 == strcmp(buffer,"123456"), "wrong output (%s)\n",buffer);
}
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