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
863bc989
Commit
863bc989
authored
Jun 13, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jun 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Add a test for reading long strings.
parent
2d323b3d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
3 deletions
+25
-3
db.c
dlls/msi/tests/db.c
+25
-3
No files found.
dlls/msi/tests/db.c
View file @
863bc989
...
...
@@ -894,10 +894,10 @@ static void test_longstrings(void)
const
char
insert_query
[]
=
"INSERT INTO `strings` ( `id`, `val` ) VALUES('1', 'Z')"
;
char
*
str
;
MSIHANDLE
hdb
;
UINT
len
;
MSIHANDLE
hdb
=
0
,
hview
=
0
,
hrec
=
0
;
DWORD
len
;
UINT
r
;
const
int
STRING_LENGTH
=
0x10005
;
const
DWORD
STRING_LENGTH
=
0x10005
;
DeleteFile
(
msifile
);
/* just MsiOpenDatabase should not create a file */
...
...
@@ -922,7 +922,29 @@ static void test_longstrings(void)
MsiDatabaseCommit
(
hdb
);
ok
(
r
==
ERROR_SUCCESS
,
"MsiDatabaseCommit failed
\n
"
);
MsiCloseHandle
(
hdb
);
r
=
MsiOpenDatabase
(
msifile
,
MSIDBOPEN_READONLY
,
&
hdb
);
ok
(
r
==
ERROR_SUCCESS
,
"MsiOpenDatabase failed
\n
"
);
r
=
MsiDatabaseOpenView
(
hdb
,
"select * from `strings` where `id` = 1"
,
&
hview
);
ok
(
r
==
ERROR_SUCCESS
,
"MsiDatabaseOpenView failed
\n
"
);
r
=
MsiViewExecute
(
hview
,
0
);
ok
(
r
==
ERROR_SUCCESS
,
"MsiViewExecute failed
\n
"
);
r
=
MsiViewFetch
(
hview
,
&
hrec
);
ok
(
r
==
ERROR_SUCCESS
,
"MsiViewFetch failed
\n
"
);
MsiCloseHandle
(
hview
);
r
=
MsiRecordGetString
(
hrec
,
2
,
NULL
,
&
len
);
ok
(
r
==
ERROR_SUCCESS
,
"MsiViewFetch failed
\n
"
);
todo_wine
{
ok
(
len
==
STRING_LENGTH
,
"string length wrong
\n
"
);
}
MsiCloseHandle
(
hrec
);
MsiCloseHandle
(
hdb
);
DeleteFile
(
msifile
);
}
...
...
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