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
94dc36e5
Commit
94dc36e5
authored
Jun 14, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jun 15, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Add test for _Streams table (based on patch by Andrey Turkin).
parent
5c3c5903
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
db.c
dlls/msi/tests/db.c
+39
-0
No files found.
dlls/msi/tests/db.c
View file @
94dc36e5
...
...
@@ -948,6 +948,44 @@ static void test_longstrings(void)
MsiCloseHandle
(
hdb
);
DeleteFile
(
msifile
);
}
static
void
test_streamtable
(
void
)
{
MSIHANDLE
hdb
=
0
,
rec
;
UINT
r
;
hdb
=
create_db
();
ok
(
hdb
,
"failed to create db
\n
"
);
r
=
run_query
(
hdb
,
"CREATE TABLE `Properties` "
"( `Property` CHAR(255), `Value` CHAR(1) PRIMARY KEY `Property`)"
);
ok
(
r
==
ERROR_SUCCESS
,
"Failed to create table
\n
"
);
/* check the column types */
rec
=
get_column_info
(
hdb
,
"select * from `_Streams`"
,
MSICOLINFO_TYPES
);
ok
(
rec
,
"failed to get column info record
\n
"
);
todo_wine
{
ok
(
check_record
(
rec
,
1
,
"s62"
),
"wrong record type
\n
"
);
ok
(
check_record
(
rec
,
2
,
"V0"
),
"wrong record type
\n
"
);
}
MsiCloseHandle
(
rec
);
/* now try the names */
rec
=
get_column_info
(
hdb
,
"select * from `_Streams`"
,
MSICOLINFO_NAMES
);
ok
(
rec
,
"failed to get column info record
\n
"
);
todo_wine
{
ok
(
check_record
(
rec
,
1
,
"Name"
),
"wrong record type
\n
"
);
ok
(
check_record
(
rec
,
2
,
"Data"
),
"wrong record type
\n
"
);
}
MsiCloseHandle
(
rec
);
MsiCloseHandle
(
hdb
);
DeleteFile
(
msifile
);
}
START_TEST
(
db
)
{
...
...
@@ -960,4 +998,5 @@ START_TEST(db)
test_getcolinfo
();
test_msiexport
();
test_longstrings
();
test_streamtable
();
}
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