Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
4086ff62
Commit
4086ff62
authored
Sep 22, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Add tests to show that the condition table is ignored when there are overrides.
parent
ae3418fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
0 deletions
+59
-0
install.c
dlls/msi/tests/install.c
+59
-0
No files found.
dlls/msi/tests/install.c
View file @
4086ff62
...
...
@@ -174,6 +174,10 @@ static const CHAR environment_dat[] = "Environment\tName\tValue\tComponent_\n"
"Var3
\t
=-MSITESTVAR3
\t
1
\t
One
\n
"
"Var4
\t
MSITESTVAR4
\t
1
\t
One
\n
"
;
static
const
CHAR
condition_dat
[]
=
"Feature_
\t
Level
\t
Condition
\n
"
"s38
\t
i2
\t
S255
\n
"
"Condition
\t
Feature_
\t
Level
\n
"
"One
\t
4
\t
1
\n
"
;
static
const
CHAR
up_property_dat
[]
=
"Property
\t
Value
\n
"
"s72
\t
l0
\n
"
...
...
@@ -919,6 +923,19 @@ static const msi_table sc_tables[] =
ADD_TABLE
(
shortcut
)
};
static
const
msi_table
ps_tables
[]
=
{
ADD_TABLE
(
component
),
ADD_TABLE
(
directory
),
ADD_TABLE
(
feature
),
ADD_TABLE
(
feature_comp
),
ADD_TABLE
(
file
),
ADD_TABLE
(
install_exec_seq
),
ADD_TABLE
(
media
),
ADD_TABLE
(
property
),
ADD_TABLE
(
condition
)
};
static
const
msi_table
env_tables
[]
=
{
ADD_TABLE
(
component
),
...
...
@@ -6542,6 +6559,47 @@ static void test_envvar(void)
delete_test_files
();
}
static
void
test_preselected
(
void
)
{
UINT
r
;
create_test_files
();
create_database
(
msifile
,
ps_tables
,
sizeof
(
ps_tables
)
/
sizeof
(
msi_table
));
r
=
MsiInstallProductA
(
msifile
,
"ADDLOCAL=One"
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
ok
(
!
delete_pf
(
"msitest
\\
cabout
\\
new
\\
five.txt"
,
TRUE
),
"File installed
\n
"
);
ok
(
!
delete_pf
(
"msitest
\\
cabout
\\
new"
,
FALSE
),
"File installed
\n
"
);
ok
(
!
delete_pf
(
"msitest
\\
cabout
\\
four.txt"
,
TRUE
),
"File installed
\n
"
);
ok
(
!
delete_pf
(
"msitest
\\
cabout"
,
FALSE
),
"File installed
\n
"
);
ok
(
!
delete_pf
(
"msitest
\\
changed
\\
three.txt"
,
TRUE
),
"File installed
\n
"
);
ok
(
!
delete_pf
(
"msitest
\\
changed"
,
FALSE
),
"File installed
\n
"
);
ok
(
!
delete_pf
(
"msitest
\\
first
\\
two.txt"
,
TRUE
),
"File installed
\n
"
);
ok
(
!
delete_pf
(
"msitest
\\
first"
,
FALSE
),
"File installed
\n
"
);
ok
(
!
delete_pf
(
"msitest
\\
filename"
,
TRUE
),
"File installed
\n
"
);
todo_wine
ok
(
delete_pf
(
"msitest
\\
one.txt"
,
TRUE
),
"File not installed
\n
"
);
ok
(
!
delete_pf
(
"msitest
\\
service.exe"
,
TRUE
),
"File installed
\n
"
);
todo_wine
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"File not installed
\n
"
);
r
=
MsiInstallProductA
(
msifile
,
NULL
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
ok
(
delete_pf
(
"msitest
\\
cabout
\\
new
\\
five.txt"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
cabout
\\
new"
,
FALSE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
cabout
\\
four.txt"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
cabout"
,
FALSE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
changed
\\
three.txt"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
changed"
,
FALSE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
first
\\
two.txt"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
first"
,
FALSE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
filename"
,
TRUE
),
"File not installed
\n
"
);
ok
(
!
delete_pf
(
"msitest
\\
one.txt"
,
TRUE
),
"File installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
service.exe"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"File not installed
\n
"
);
delete_test_files
();
}
START_TEST
(
install
)
{
DWORD
len
;
...
...
@@ -6626,6 +6684,7 @@ START_TEST(install)
test_shortcut
();
test_envvar
();
test_lastusedsource
();
test_preselected
();
DeleteFileA
(
log_file
);
...
...
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