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
674efeb1
Commit
674efeb1
authored
Mar 02, 2024
by
Zebediah Figura
Committed by
Alexandre Julliard
Mar 04, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Expand costing tests.
parent
0c35e9ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
package.c
dlls/msi/tests/package.c
+8
-4
No files found.
dlls/msi/tests/package.c
View file @
674efeb1
...
...
@@ -8472,10 +8472,14 @@ static void test_costs(void)
add_media_entry
(
hdb
,
"'1', '2', 'cabinet', '', '', ''"
);
create_file_table
(
hdb
);
add_file_entry
(
hdb
,
"'one.txt', 'one', 'one.txt', 4096, '', '', 8192, 1"
);
add_file_entry
(
hdb
,
"'a.txt', 'one', 'a.txt', 2048000000, '', '', 8192, 1"
);
add_file_entry
(
hdb
,
"'b.txt', 'one', 'b.txt', 2048000000, '', '', 8192, 1"
);
add_file_entry
(
hdb
,
"'c.txt', 'one', 'c.txt', 2048000000, '', '', 8192, 1"
);
add_file_entry
(
hdb
,
"'d.txt', 'one', 'd.txt', 4097, '', '', 8192, 1"
);
add_file_entry
(
hdb
,
"'e.txt', 'one', 'e.txt', 1, '', '', 8192, 1"
);
create_component_table
(
hdb
);
add_component_entry
(
hdb
,
"'one', '{B2F86B9D-8447-4BC5-8883-750C45AA31CA}', 'TARGETDIR', 0, '', '
one
.txt'"
);
add_component_entry
(
hdb
,
"'one', '{B2F86B9D-8447-4BC5-8883-750C45AA31CA}', 'TARGETDIR', 0, '', '
a
.txt'"
);
add_component_entry
(
hdb
,
"'two', '{62A09F6E-0B74-4829-BDB7-CAB66F42CCE8}', 'TARGETDIR', 0, '', ''"
);
create_feature_table
(
hdb
);
...
...
@@ -8603,7 +8607,7 @@ static void test_costs(void)
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
ok
(
len
==
2
,
"expected len == 2, got %lu
\n
"
,
len
);
ok
(
drive
[
0
],
"expected a drive
\n
"
);
ok
(
cost
&&
cost
!=
0xdead
,
"expected cost > 0,
got %d
\n
"
,
cost
);
todo_wine
ok
(
cost
==
12000024
,
"
got %d
\n
"
,
cost
);
ok
(
!
temp
,
"expected temp == 0, got %d
\n
"
,
temp
);
len
=
sizeof
(
drive
);
...
...
@@ -8647,7 +8651,7 @@ static void test_costs(void)
cost
=
0xdead
;
r
=
MsiGetFeatureCostA
(
hpkg
,
"one"
,
MSICOSTTREE_SELFONLY
,
INSTALLSTATE_LOCAL
,
&
cost
);
ok
(
!
r
,
"got %u
\n
"
,
r
);
ok
(
cost
==
8
,
"got %d
\n
"
,
cost
);
todo_wine
ok
(
cost
==
12000024
,
"got %d
\n
"
,
cost
);
MsiCloseHandle
(
hpkg
);
error:
...
...
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