Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
2e19d495
Commit
2e19d495
authored
Oct 05, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Oct 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Check that transforms preserve tables.
parent
33c63474
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
db.c
dlls/msi/tests/db.c
+28
-0
No files found.
dlls/msi/tests/db.c
View file @
2e19d495
...
...
@@ -1720,6 +1720,14 @@ static void test_generate_transform(void)
r
=
run_query
(
hdb1
,
0
,
query
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to add table
\n
"
);
query
=
"INSERT INTO `AAR` ( `BAR`, `CAR` ) VALUES ( 1, 'vw' )"
;
r
=
run_query
(
hdb1
,
0
,
query
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to add row 1
\n
"
);
query
=
"INSERT INTO `AAR` ( `BAR`, `CAR` ) VALUES ( 2, 'bmw' )"
;
r
=
run_query
(
hdb1
,
0
,
query
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to add row 2
\n
"
);
todo_wine
{
r
=
MsiDatabaseGenerateTransform
(
hdb1
,
hdb2
,
NULL
,
0
,
0
);
ok
(
r
==
ERROR_SUCCESS
,
"return code %d, should be ERROR_SUCCESS
\n
"
,
r
);
...
...
@@ -1727,11 +1735,19 @@ static void test_generate_transform(void)
r
=
MsiDatabaseGenerateTransform
(
hdb1
,
hdb2
,
mstfile
,
0
,
0
);
ok
(
r
==
ERROR_SUCCESS
,
"return code %d, should be ERROR_SUCCESS
\n
"
,
r
);
/* database needs to be committed */
MsiDatabaseCommit
(
hdb1
);
r
=
MsiDatabaseGenerateTransform
(
hdb1
,
hdb2
,
mstfile
,
0
,
0
);
ok
(
r
==
ERROR_SUCCESS
,
"return code %d, should be ERROR_SUCCESS
\n
"
,
r
);
MsiCloseHandle
(
hdb1
);
r
=
MsiDatabaseApplyTransform
(
hdb2
,
mstfile
,
0
);
ok
(
r
==
ERROR_SUCCESS
,
"return code %d, should be ERROR_SUCCESS
\n
"
,
r
);
MsiDatabaseCommit
(
hdb2
);
/* apply the same transform again? */
r
=
MsiDatabaseApplyTransform
(
hdb2
,
mstfile
,
0
);
ok
(
r
==
ERROR_INSTALL_TRANSFORM_FAILURE
,
...
...
@@ -1741,6 +1757,18 @@ static void test_generate_transform(void)
MsiCloseHandle
(
hdb2
);
DeleteFile
(
msifile
);
r
=
MsiOpenDatabase
(
msifile2
,
MSIDBOPEN_READONLY
,
&
hdb1
);
ok
(
r
==
ERROR_SUCCESS
,
"Failed to create database
\n
"
);
todo_wine
{
query
=
"select `BAR`,`CAR` from `AAR`"
;
r
=
run_query
(
hdb1
,
0
,
query
);
ok
(
r
==
ERROR_SUCCESS
,
"select query failed
\n
"
);
}
MsiCloseHandle
(
hdb1
);
DeleteFile
(
msifile2
);
DeleteFile
(
mstfile
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment