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
fd2a2d38
Commit
fd2a2d38
authored
Nov 20, 2023
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Nov 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msdasql/tests: Add more IDBProperties::GetProperties() tests.
parent
b54e1ec6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
provider.c
dlls/msdasql/tests/provider.c
+38
-0
No files found.
dlls/msdasql/tests/provider.c
View file @
fd2a2d38
...
...
@@ -154,6 +154,7 @@ static void test_Properties(void)
free_dbpropinfoset
(
infocount
,
propinfoset
);
CoTaskMemFree
(
desc
);
/* Test specifying all supported properties */
hr
=
IDBProperties_GetProperties
(
props
,
1
,
&
propidlist
,
&
propcnt
,
&
propset
);
ok
(
hr
==
S_OK
,
"got 0x%08lx
\n
"
,
hr
);
ok
(
propidlist
.
cPropertyIDs
==
14
,
"got %lu
\n
"
,
propidlist
.
cPropertyIDs
);
...
...
@@ -184,7 +185,44 @@ static void test_Properties(void)
ok
(
V_VT
(
&
propset
->
rgProperties
[
i
].
vValue
)
==
vartype
,
"%lu wrong type %d
\n
"
,
i
,
V_VT
(
&
propset
->
rgProperties
[
i
].
vValue
));
}
for
(
i
=
0
;
i
<
propset
->
cProperties
;
i
++
)
ok
(
propset
->
rgProperties
[
i
].
dwPropertyID
==
properties
[
i
],
"%ld %ld, got %ld
\n
"
,
i
,
properties
[
i
],
propset
->
rgProperties
[
i
].
dwPropertyID
);
free_dbpropset
(
propcnt
,
propset
);
/* Test specifying only one supported properties */
propidlist
.
cPropertyIDs
=
1
;
hr
=
IDBProperties_GetProperties
(
props
,
1
,
&
propidlist
,
&
propcnt
,
&
propset
);
ok
(
hr
==
S_OK
,
"got 0x%08lx
\n
"
,
hr
);
ok
(
propset
->
cProperties
==
1
,
"expected 1, got %lu
\n
"
,
propset
->
cProperties
);
free_dbpropset
(
propcnt
,
propset
);
/* Test when cPropertyIDSets is zero, all initialization properties should be returned */
hr
=
IDBProperties_GetProperties
(
props
,
0
,
&
propidlist
,
&
propcnt
,
&
propset
);
ok
(
hr
==
S_OK
,
"got 0x%08lx
\n
"
,
hr
);
todo_wine
ok
(
propset
->
cProperties
==
ARRAY_SIZE
(
properties
),
"got %lu
\n
"
,
propset
->
cProperties
);
for
(
i
=
0
;
i
<
propset
->
cProperties
;
i
++
)
todo_wine_if
(
i
>
0
)
ok
(
propset
->
rgProperties
[
i
].
dwPropertyID
==
properties
[
i
],
"%ld %ld, got %ld
\n
"
,
i
,
properties
[
i
],
propset
->
rgProperties
[
i
].
dwPropertyID
);
free_dbpropset
(
propcnt
,
propset
);
/* Test when propidlist.cPropertyIDs is zero, all initialization properties should be returned */
CoTaskMemFree
(
propidlist
.
rgPropertyIDs
);
propidlist
.
guidPropertySet
=
DBPROPSET_DBINIT
;
propidlist
.
cPropertyIDs
=
0
;
propidlist
.
rgPropertyIDs
=
NULL
;
hr
=
IDBProperties_GetProperties
(
props
,
1
,
&
propidlist
,
&
propcnt
,
&
propset
);
ok
(
hr
==
S_OK
,
"got 0x%08lx
\n
"
,
hr
);
todo_wine
ok
(
propset
->
cProperties
==
ARRAY_SIZE
(
properties
),
"got %lu
\n
"
,
propset
->
cProperties
);
todo_wine
for
(
i
=
0
;
i
<
propset
->
cProperties
;
i
++
)
ok
(
propset
->
rgProperties
[
i
].
dwPropertyID
==
properties
[
i
],
"%ld %ld, got %ld
\n
"
,
i
,
properties
[
i
],
propset
->
rgProperties
[
i
].
dwPropertyID
);
free_dbpropset
(
propcnt
,
propset
);
}
...
...
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