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
005c0a79
Commit
005c0a79
authored
Oct 26, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Oct 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Test the order in which cab files are handled in the Media table.
parent
c6bfbde8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
0 deletions
+49
-0
install.c
dlls/msi/tests/install.c
+49
-0
No files found.
dlls/msi/tests/install.c
View file @
005c0a79
...
@@ -823,6 +823,54 @@ static void test_continuouscabs(void)
...
@@ -823,6 +823,54 @@ static void test_continuouscabs(void)
DeleteFile
(
msifile
);
DeleteFile
(
msifile
);
}
}
static
void
test_caborder
(
void
)
{
UINT
r
;
create_file
(
"imperator"
,
100
);
create_file
(
"maximus"
,
500
);
create_file
(
"augustus"
,
50000
);
create_database
(
msifile
,
cc_tables
,
sizeof
(
cc_tables
)
/
sizeof
(
msi_table
));
MsiSetInternalUI
(
INSTALLUILEVEL_NONE
,
NULL
);
create_cab_file
(
"test1.cab"
,
MEDIA_SIZE
,
"maximus
\0
"
);
create_cab_file
(
"test2.cab"
,
MEDIA_SIZE
,
"augustus
\0
"
);
r
=
MsiInstallProductA
(
msifile
,
NULL
);
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"
,
FALSE
),
"File is installed
\n
"
);
}
ok
(
!
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"File is installed
\n
"
);
DeleteFile
(
"test1.cab"
);
DeleteFile
(
"test2.cab"
);
create_cab_file
(
"test1.cab"
,
MEDIA_SIZE
,
"imperator
\0
"
);
create_cab_file
(
"test2.cab"
,
MEDIA_SIZE
,
"maximus
\0
augustus
\0
"
);
r
=
MsiInstallProductA
(
msifile
,
NULL
);
todo_wine
{
ok
(
r
==
ERROR_INSTALL_FAILURE
,
"Expected ERROR_INSTALL_FAILURE, got %u
\n
"
,
r
);
ok
(
!
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"File is installed
\n
"
);
ok
(
!
delete_pf
(
"msitest
\\
augustus"
,
TRUE
),
"File is installed
\n
"
);
ok
(
!
delete_pf
(
"msitest"
,
FALSE
),
"File is installed
\n
"
);
}
DeleteFile
(
"test1.cab"
);
DeleteFile
(
"test2.cab"
);
DeleteFile
(
"imperator"
);
DeleteFile
(
"maximus"
);
DeleteFile
(
"augustus"
);
DeleteFile
(
msifile
);
}
START_TEST
(
install
)
START_TEST
(
install
)
{
{
DWORD
len
;
DWORD
len
;
...
@@ -839,4 +887,5 @@ START_TEST(install)
...
@@ -839,4 +887,5 @@ START_TEST(install)
test_MsiSetComponentState
();
test_MsiSetComponentState
();
test_packagecoltypes
();
test_packagecoltypes
();
test_continuouscabs
();
test_continuouscabs
();
test_caborder
();
}
}
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