msi: Add a test for formatting records with strings.
This commit is contained in:
parent
ed663fe216
commit
99129d20a6
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue