msi: Test freeing _TransformView table.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2020-06-30 05:40:29 +02:00 committed by Alexandre Julliard
parent 7200257d04
commit eb5a803bdb
1 changed files with 6 additions and 0 deletions

View File

@ -3217,6 +3217,12 @@ static void test_try_transform(void)
r = MsiCloseHandle(hview);
ok(r == ERROR_SUCCESS, "MsiCloseHandle failed\n");
query = "ALTER TABLE `_TransformView` FREE";
r = run_query( hdb, 0, query );
ok( r == ERROR_SUCCESS, "cannot free _TransformView table: %d\n", r );
r = run_query( hdb, 0, query );
ok( r == ERROR_BAD_QUERY_SYNTAX, "_TransformView table still exist: %d\n", r );
r = MsiDatabaseApplyTransformA( hdb, mstfile, 0 );
ok( r == ERROR_SUCCESS, "return code %d, should be ERROR_SUCCESS\n", r );