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
01316db0
Commit
01316db0
authored
Mar 20, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Mar 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Remove the dependence on compressed cabinets in the install tests.
parent
19c105c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
74 deletions
+12
-74
install.c
dlls/msi/tests/install.c
+12
-74
No files found.
dlls/msi/tests/install.c
View file @
01316db0
...
...
@@ -1577,44 +1577,6 @@ static void create_cc_test_files(void)
create_file
(
"maximus"
,
500
);
create_file
(
"augustus"
,
50000
);
create_file
(
"caesar"
,
500
);
set_cab_parameters
(
&
cabParams
,
"test1.cab"
,
200
);
hfci
=
FCICreate
(
&
erf
,
file_placed
,
mem_alloc
,
mem_free
,
fci_open
,
fci_read
,
fci_write
,
fci_close
,
fci_seek
,
fci_delete
,
get_temp_file
,
&
cabParams
,
cab_context
);
ok
(
hfci
!=
NULL
,
"Failed to create an FCI context
\n
"
);
res
=
add_file
(
hfci
,
"maximus"
,
tcompTYPE_MSZIP
);
ok
(
res
,
"Failed to add file maximus
\n
"
);
res
=
add_file
(
hfci
,
"augustus"
,
tcompTYPE_MSZIP
);
ok
(
res
,
"Failed to add file augustus
\n
"
);
res
=
FCIFlushCabinet
(
hfci
,
FALSE
,
get_next_cabinet
,
progress
);
ok
(
res
,
"Failed to flush the cabinet
\n
"
);
res
=
FCIDestroy
(
hfci
);
ok
(
res
,
"Failed to destroy the cabinet
\n
"
);
create_cab_file
(
"test3.cab"
,
MEDIA_SIZE
,
"caesar
\0
"
);
DeleteFile
(
"maximus"
);
DeleteFile
(
"augustus"
);
DeleteFile
(
"caesar"
);
}
static
void
create_cc2_test_files
(
void
)
{
CCAB
cabParams
;
HFCI
hfci
;
ERF
erf
;
static
CHAR
cab_context
[]
=
"test%d.cab"
;
BOOL
res
;
create_file
(
"maximus"
,
500
);
create_file
(
"augustus"
,
50000
);
create_file
(
"tiberius"
,
500
);
create_file
(
"caesar"
,
500
);
...
...
@@ -1678,28 +1640,17 @@ static void test_continuouscabs(void)
r
=
MsiInstallProductA
(
msifile
,
NULL
);
if
(
r
==
ERROR_SUCCESS
)
/* win9x has a problem with this */
{
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
ok
(
delete_pf
(
"msitest
\\
augustus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
caesar"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"File not installed
\n
"
);
todo_wine
{
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
ok
(
delete_pf
(
"msitest
\\
augustus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
caesar"
,
TRUE
),
"File not installed
\n
"
);
}
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"File not installed
\n
"
);
}
else
{
/* FIXME: remove when we pass with ERROR_SUCCESS */
delete_pf
(
"msitest
\\
maximus"
,
TRUE
);
delete_pf
(
"msitest
\\
augustus"
,
TRUE
);
delete_pf
(
"msitest
\\
caesar"
,
TRUE
);
delete_pf
(
"msitest"
,
FALSE
);
}
delete_cab_files
();
DeleteFile
(
msifile
);
create_cc
2
_test_files
();
create_cc_test_files
();
create_database
(
msifile
,
cc2_tables
,
sizeof
(
cc2_tables
)
/
sizeof
(
msi_table
));
MsiSetInternalUI
(
INSTALLUILEVEL_NONE
,
NULL
);
...
...
@@ -1766,13 +1717,13 @@ static void test_caborder(void)
create_database
(
msifile
,
co_tables
,
sizeof
(
co_tables
)
/
sizeof
(
msi_table
));
r
=
MsiInstallProductA
(
msifile
,
NULL
);
ok
(
!
delete_pf
(
"msitest
\\
augustus"
,
TRUE
),
"File is installed
\n
"
);
ok
(
r
==
ERROR_INSTALL_FAILURE
,
"Expected ERROR_INSTALL_FAILURE, got %u
\n
"
,
r
);
ok
(
!
delete_pf
(
"msitest
\\
caesar"
,
TRUE
),
"File is installed
\n
"
);
ok
(
!
delete_pf
(
"msitest"
,
FALSE
),
"File is installed
\n
"
);
todo_wine
{
ok
(
!
delete_pf
(
"msitest
\\
augustus"
,
TRUE
),
"File is installed
\n
"
);
ok
(
!
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"File is installed
\n
"
);
ok
(
r
==
ERROR_INSTALL_FAILURE
,
"Expected ERROR_INSTALL_FAILURE, got %u
\n
"
,
r
);
}
delete_cab_files
();
...
...
@@ -1782,11 +1733,11 @@ static void test_caborder(void)
create_database
(
msifile
,
co2_tables
,
sizeof
(
co2_tables
)
/
sizeof
(
msi_table
));
r
=
MsiInstallProductA
(
msifile
,
NULL
);
ok
(
!
delete_pf
(
"msitest
\\
augustus"
,
TRUE
),
"File is installed
\n
"
);
ok
(
!
delete_pf
(
"msitest
\\
caesar"
,
TRUE
),
"File is installed
\n
"
);
todo_wine
{
ok
(
r
==
ERROR_INSTALL_FAILURE
,
"Expected ERROR_INSTALL_FAILURE, got %u
\n
"
,
r
);
ok
(
!
delete_pf
(
"msitest
\\
augustus"
,
TRUE
),
"File is installed
\n
"
);
ok
(
!
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"File is installed
\n
"
);
ok
(
!
delete_pf
(
"msitest"
,
FALSE
),
"File is installed
\n
"
);
}
...
...
@@ -1842,12 +1793,9 @@ static void test_samesequence(void)
r
=
MsiInstallProductA
(
msifile
,
NULL
);
if
(
r
==
ERROR_SUCCESS
)
/* win9x has a problem with this */
{
todo_wine
{
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
ok
(
delete_pf
(
"msitest
\\
augustus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
caesar"
,
TRUE
),
"File not installed
\n
"
);
}
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
ok
(
delete_pf
(
"msitest
\\
augustus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
caesar"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"File not installed
\n
"
);
}
...
...
@@ -1868,22 +1816,12 @@ static void test_uiLevelFlags(void)
r
=
MsiInstallProductA
(
msifile
,
NULL
);
if
(
r
==
ERROR_SUCCESS
)
/* win9x has a problem with this */
{
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
ok
(
!
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"UI install occurred, but execute-only was requested.
\n
"
);
todo_wine
{
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
ok
(
delete_pf
(
"msitest
\\
caesar"
,
TRUE
),
"File not installed
\n
"
);
}
ok
(
delete_pf
(
"msitest
\\
caesar"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
augustus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"File not installed
\n
"
);
}
else
{
/* FIXME: remove when we pass with ERROR_SUCCESS */
delete_pf
(
"msitest
\\
caesar"
,
TRUE
);
delete_pf
(
"msitest
\\
augustus"
,
TRUE
);
delete_pf
(
"msitest"
,
FALSE
);
}
delete_cab_files
();
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