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
4052b8be
Commit
4052b8be
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 the _Properties table is a bit strange.
parent
2f2143b4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
+45
-0
package.c
dlls/msi/tests/package.c
+45
-0
No files found.
dlls/msi/tests/package.c
View file @
4052b8be
...
...
@@ -1344,6 +1344,50 @@ static void test_props(void)
DeleteFile
(
msifile
);
}
static
void
test_properties_table
(
void
)
{
const
char
*
query
;
UINT
r
;
MSIHANDLE
hpkg
,
hdb
;
char
buffer
[
0x10
];
DWORD
sz
;
hdb
=
create_package_db
();
ok
(
hdb
,
"failed to create package
\n
"
);
hpkg
=
package_from_db
(
hdb
);
ok
(
hpkg
,
"failed to create package
\n
"
);
query
=
"CREATE TABLE `_Properties` ( "
"`foo` INT NOT NULL, `bar` INT LOCALIZABLE PRIMARY KEY `foo`)"
;
r
=
run_query
(
hdb
,
query
);
ok
(
r
==
ERROR_INVALID_HANDLE
,
"failed to create table
\n
"
);
MsiCloseHandle
(
hpkg
);
DeleteFile
(
msifile
);
hdb
=
create_package_db
();
ok
(
hdb
,
"failed to create package
\n
"
);
query
=
"CREATE TABLE `_Properties` ( "
"`foo` INT NOT NULL, `bar` INT LOCALIZABLE PRIMARY KEY `foo`)"
;
r
=
run_query
(
hdb
,
query
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to create table
\n
"
);
hpkg
=
package_from_db
(
hdb
);
ok
(
hpkg
,
"failed to create package
\n
"
);
r
=
MsiSetProperty
(
hpkg
,
"foo"
,
"bar"
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to create table
\n
"
);
sz
=
sizeof
buffer
;
r
=
MsiGetProperty
(
hpkg
,
"foo"
,
buffer
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to create table
\n
"
);
MsiCloseHandle
(
hpkg
);
DeleteFile
(
msifile
);
}
static
UINT
try_query_param
(
MSIHANDLE
hdb
,
LPCSTR
szQuery
,
MSIHANDLE
hrec
)
{
MSIHANDLE
htab
=
0
;
...
...
@@ -2858,6 +2902,7 @@ START_TEST(package)
test_gettargetpath_bad
();
test_settargetpath
();
test_props
();
test_properties_table
();
test_condition
();
test_msipackage
();
test_formatrecord2
();
...
...
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