Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
2f2143b4
Commit
2f2143b4
authored
Nov 17, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Nov 17, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Add a test showing which tables are special.
parent
5bffd28b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
db.c
dlls/msi/tests/db.c
+34
-0
No files found.
dlls/msi/tests/db.c
View file @
2f2143b4
...
@@ -3122,6 +3122,39 @@ static void test_update(void)
...
@@ -3122,6 +3122,39 @@ static void test_update(void)
ok
(
r
==
ERROR_SUCCESS
,
"MsiCloseHandle failed
\n
"
);
ok
(
r
==
ERROR_SUCCESS
,
"MsiCloseHandle failed
\n
"
);
}
}
void
test_special_tables
(
void
)
{
const
char
*
query
;
MSIHANDLE
hdb
=
0
;
UINT
r
;
r
=
MsiOpenDatabase
(
msifile
,
MSIDBOPEN_CREATE
,
&
hdb
);
ok
(
r
==
ERROR_SUCCESS
,
"MsiOpenDatabase failed
\n
"
);
query
=
"CREATE TABLE `_Properties` ( "
"`foo` INT NOT NULL, `bar` INT LOCALIZABLE PRIMARY KEY `foo`)"
;
r
=
run_query
(
hdb
,
0
,
query
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to create table
\n
"
);
query
=
"CREATE TABLE `_Streams` ( "
"`foo` INT NOT NULL, `bar` INT LOCALIZABLE PRIMARY KEY `foo`)"
;
r
=
run_query
(
hdb
,
0
,
query
);
todo_wine
ok
(
r
==
ERROR_BAD_QUERY_SYNTAX
,
"created _Streams table
\n
"
);
query
=
"CREATE TABLE `_Tables` ( "
"`foo` INT NOT NULL, `bar` INT LOCALIZABLE PRIMARY KEY `foo`)"
;
r
=
run_query
(
hdb
,
0
,
query
);
ok
(
r
==
ERROR_BAD_QUERY_SYNTAX
,
"created _Tables table
\n
"
);
query
=
"CREATE TABLE `_Columns` ( "
"`foo` INT NOT NULL, `bar` INT LOCALIZABLE PRIMARY KEY `foo`)"
;
r
=
run_query
(
hdb
,
0
,
query
);
ok
(
r
==
ERROR_BAD_QUERY_SYNTAX
,
"created _Columns table
\n
"
);
r
=
MsiCloseHandle
(
hdb
);
ok
(
r
==
ERROR_SUCCESS
,
"MsiCloseHandle failed
\n
"
);
}
START_TEST
(
db
)
START_TEST
(
db
)
{
{
test_msidatabase
();
test_msidatabase
();
...
@@ -3144,4 +3177,5 @@ START_TEST(db)
...
@@ -3144,4 +3177,5 @@ START_TEST(db)
test_alter
();
test_alter
();
test_integers
();
test_integers
();
test_update
();
test_update
();
test_special_tables
();
}
}
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