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
eaf8848d
Commit
eaf8848d
authored
Sep 05, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Fix a number of test messages.
parent
a8b51497
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
23 deletions
+23
-23
action.c
dlls/msi/tests/action.c
+18
-18
automation.c
dlls/msi/tests/automation.c
+5
-5
install.c
dlls/msi/tests/install.c
+0
-0
No files found.
dlls/msi/tests/action.c
View file @
eaf8848d
...
...
@@ -2537,7 +2537,7 @@ static void test_register_product(void)
}
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
File not install
ed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
Directory not creat
ed
\n
"
);
res
=
RegOpenKeyA
(
HKEY_CURRENT_USER
,
userugkey
,
&
hkey
);
ok
(
res
==
ERROR_FILE_NOT_FOUND
,
"Expected ERROR_FILE_NOT_FOUND, got %d
\n
"
,
res
);
...
...
@@ -2648,7 +2648,7 @@ static void test_register_product(void)
r
=
MsiInstallProductA
(
msifile
,
"REGISTER_PRODUCT=1 ALLUSERS=1"
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
File not install
ed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
Directory not creat
ed
\n
"
);
res
=
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
userugkey
,
0
,
access
,
&
hkey
);
ok
(
res
==
ERROR_FILE_NOT_FOUND
,
"Expected ERROR_FILE_NOT_FOUND, got %d
\n
"
,
res
);
...
...
@@ -2818,7 +2818,7 @@ static void test_publish_product(void)
}
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
File not install
ed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
Directory not creat
ed
\n
"
);
res
=
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
badprod
,
0
,
access
,
&
hkey
);
ok
(
res
==
ERROR_FILE_NOT_FOUND
,
"Expected ERROR_FILE_NOT_FOUND, got %d
\n
"
,
res
);
...
...
@@ -2915,7 +2915,7 @@ currentuser:
goto
machprod
;
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
File not install
ed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
Directory not creat
ed
\n
"
);
res
=
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
badprod
,
0
,
access
,
&
hkey
);
ok
(
res
==
ERROR_FILE_NOT_FOUND
,
"Expected ERROR_FILE_NOT_FOUND, got %d
\n
"
,
res
);
...
...
@@ -3052,7 +3052,7 @@ static void test_publish_features(void)
}
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
File not install
ed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
Directory not creat
ed
\n
"
);
res
=
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
featkey
,
0
,
access
,
&
hkey
);
ok
(
res
==
ERROR_FILE_NOT_FOUND
,
"Expected ERROR_FILE_NOT_FOUND, got %d
\n
"
,
res
);
...
...
@@ -3089,7 +3089,7 @@ static void test_publish_features(void)
r
=
MsiInstallProductA
(
msifile
,
"PUBLISH_FEATURES=1 ALLUSERS=1"
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
File not install
ed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
Directory not creat
ed
\n
"
);
res
=
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
featkey
,
0
,
access
,
&
hkey
);
ok
(
res
==
ERROR_FILE_NOT_FOUND
,
"Expected ERROR_FILE_NOT_FOUND, got %d
\n
"
,
res
);
...
...
@@ -3238,7 +3238,7 @@ static void test_register_user(void)
}
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
File not install
ed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
Directory not creat
ed
\n
"
);
sprintf
(
keypath
,
keypropsfmt
,
usersid
);
res
=
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
keypath
,
0
,
access
,
&
props
);
...
...
@@ -3260,7 +3260,7 @@ static void test_register_user(void)
r
=
MsiInstallProductA
(
msifile
,
"REGISTER_USER=1 ALLUSERS=1"
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
File not install
ed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
Directory not creat
ed
\n
"
);
sprintf
(
keypath
,
keypropsfmt
,
"S-1-5-18"
);
res
=
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
keypath
,
0
,
access
,
&
props
);
...
...
@@ -3334,7 +3334,7 @@ static void test_process_components(void)
}
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
File not install
ed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
Directory not creat
ed
\n
"
);
sprintf
(
keypath
,
keyfmt
,
usersid
,
"CBABC2FDCCB35E749A8944D8C1C098B5"
);
res
=
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
keypath
,
0
,
access
,
&
comp
);
...
...
@@ -3380,7 +3380,7 @@ static void test_process_components(void)
r
=
MsiInstallProductA
(
msifile
,
"PROCESS_COMPONENTS=1 ALLUSERS=1"
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
File not install
ed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
Directory not creat
ed
\n
"
);
sprintf
(
keypath
,
keyfmt
,
"S-1-5-18"
,
"CBABC2FDCCB35E749A8944D8C1C098B5"
);
res
=
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
keypath
,
0
,
access
,
&
comp
);
...
...
@@ -4239,7 +4239,7 @@ static void test_remove_files(void)
ok
(
!
pf_exists
(
"msitest
\\
hydrogen"
),
"File not deleted
\n
"
);
ok
(
!
pf_exists
(
"msitest
\\
helium"
),
"File not deleted
\n
"
);
ok
(
delete_pf
(
"msitest
\\
lithium"
,
TRUE
),
"File deleted
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
File
deleted
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
Directory
deleted
\n
"
);
create_pf
(
"msitest"
,
FALSE
);
create_pf
(
"msitest
\\
hydrogen"
,
TRUE
);
...
...
@@ -4258,7 +4258,7 @@ static void test_remove_files(void)
ok
(
!
pf_exists
(
"msitest
\\
hydrogen"
),
"File not deleted
\n
"
);
ok
(
delete_pf
(
"msitest
\\
helium"
,
TRUE
),
"File deleted
\n
"
);
ok
(
delete_pf
(
"msitest
\\
lithium"
,
TRUE
),
"File deleted
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
File
deleted
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
Directory
deleted
\n
"
);
create_pf
(
"msitest"
,
FALSE
);
create_pf
(
"msitest
\\
furlong"
,
TRUE
);
...
...
@@ -4428,7 +4428,7 @@ static void test_move_files(void)
ok
(
delete_pf
(
"msitest
\\
bar"
,
TRUE
),
"File not moved
\n
"
);
ok
(
delete_pf
(
"msitest
\\
bur"
,
TRUE
),
"File not moved
\n
"
);
ok
(
!
delete_pf
(
"msitest
\\
bird"
,
TRUE
),
"File moved
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
File not install
ed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
Directory not creat
ed
\n
"
);
ok
(
DeleteFileA
(
"cameroon"
),
"File moved
\n
"
);
ok
(
!
DeleteFileA
(
"djibouti"
),
"File not moved
\n
"
);
ok
(
DeleteFileA
(
"egypt"
),
"File moved
\n
"
);
...
...
@@ -4512,10 +4512,10 @@ static void test_duplicate_files(void)
ok
(
delete_pf
(
"msitest
\\
maximus"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
augustus"
,
TRUE
),
"File not duplicated
\n
"
);
ok
(
delete_pf
(
"msitest
\\
this
\\
doesnot
\\
exist
\\
maximus"
,
TRUE
),
"File not duplicated
\n
"
);
ok
(
delete_pf
(
"msitest
\\
this
\\
doesnot
\\
exist"
,
FALSE
),
"
File not duplic
ated
\n
"
);
ok
(
delete_pf
(
"msitest
\\
this
\\
doesnot"
,
FALSE
),
"
File not duplic
ated
\n
"
);
ok
(
delete_pf
(
"msitest
\\
this"
,
FALSE
),
"
File not duplic
ated
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
File not install
ed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
this
\\
doesnot
\\
exist"
,
FALSE
),
"
Directory not cre
ated
\n
"
);
ok
(
delete_pf
(
"msitest
\\
this
\\
doesnot"
,
FALSE
),
"
Directory not cre
ated
\n
"
);
ok
(
delete_pf
(
"msitest
\\
this"
,
FALSE
),
"
Directory not cre
ated
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
Directory not creat
ed
\n
"
);
error:
DeleteFile
(
"msitest
\\
maximus"
);
...
...
@@ -4552,7 +4552,7 @@ static void test_write_registry_values(void)
}
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %u
\n
"
,
r
);
ok
(
delete_pf
(
"msitest
\\
augustus"
,
TRUE
),
"File installed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
File install
ed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
Directory not creat
ed
\n
"
);
if
(
is_64bit
)
res
=
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
"SOFTWARE
\\
Wow6432Node
\\
Wine
\\
msitest"
,
0
,
KEY_ALL_ACCESS
,
&
hkey
);
...
...
dlls/msi/tests/automation.c
View file @
eaf8848d
...
...
@@ -2492,16 +2492,16 @@ static void test_Installer_InstallProduct(void)
/* Check & clean up installed files & registry keys */
ok
(
delete_pf
(
"msitest
\\
cabout
\\
new
\\
five.txt"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
cabout
\\
new"
,
FALSE
),
"
File not install
ed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
cabout
\\
new"
,
FALSE
),
"
Directory not creat
ed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
cabout
\\
four.txt"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
cabout"
,
FALSE
),
"
File not install
ed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
cabout"
,
FALSE
),
"
Directory not creat
ed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
changed
\\
three.txt"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
changed"
,
FALSE
),
"
File not install
ed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
changed"
,
FALSE
),
"
Directory not creat
ed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
first
\\
two.txt"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
first"
,
FALSE
),
"
File not install
ed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
first"
,
FALSE
),
"
Directory not creat
ed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
one.txt"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest
\\
filename"
,
TRUE
),
"File not installed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
File not install
ed
\n
"
);
ok
(
delete_pf
(
"msitest"
,
FALSE
),
"
Directory not creat
ed
\n
"
);
res
=
RegOpenKeyA
(
HKEY_CURRENT_USER
,
"SOFTWARE
\\
Wine
\\
msitest"
,
&
hkey
);
ok
(
res
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
res
);
...
...
dlls/msi/tests/install.c
View file @
eaf8848d
This diff is collapsed.
Click to expand it.
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