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
01cc2c32
Commit
01cc2c32
authored
Dec 06, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Dec 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: More tests for the SourceDir property.
parent
3578bf64
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
package.c
dlls/msi/tests/package.c
+26
-0
No files found.
dlls/msi/tests/package.c
View file @
01cc2c32
...
...
@@ -2901,6 +2901,11 @@ static void test_sourcedirprop(void)
ok
(
r
==
ERROR_SUCCESS
,
"failed to get property: %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
source_dir
,
path
),
"Expected %s, got %s
\n
"
,
path
,
source_dir
);
size
=
MAX_PATH
;
r
=
MsiGetProperty
(
hpkg
,
"SoUrCeDiR"
,
source_dir
,
&
size
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to get property: %d
\n
"
,
r
);
ok
(
!
lstrlenA
(
source_dir
),
"Expected emtpy source dir, got %s
\n
"
,
source_dir
);
MsiCloseHandle
(
hpkg
);
DeleteFileA
(
msifile
);
}
...
...
@@ -2975,6 +2980,27 @@ static void test_prop_path(void)
ok
(
!
lstrcmpi
(
cwd
,
buffer
),
"SourceDir (%s) should be current dir (%s)
\n
"
,
buffer
,
cwd
);
}
r
=
MsiSetProperty
(
hpkg
,
"SourceDir"
,
"goo"
);
ok
(
r
==
ERROR_SUCCESS
,
"property not set
\n
"
);
sz
=
sizeof
buffer
;
buffer
[
0
]
=
0
;
r
=
MsiGetProperty
(
hpkg
,
"SourceDir"
,
buffer
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"property not set
\n
"
);
ok
(
!
lstrcmpi
(
buffer
,
"goo"
),
"SourceDir (%s) should be goo
\n
"
,
buffer
);
sz
=
sizeof
buffer
;
buffer
[
0
]
=
0
;
r
=
MsiGetSourcePath
(
hpkg
,
"SourceDir"
,
buffer
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to get source path
\n
"
);
ok
(
!
lstrcmpi
(
buffer
,
cwd
),
"SourceDir (%s) should be goo
\n
"
,
buffer
);
sz
=
sizeof
buffer
;
buffer
[
0
]
=
0
;
r
=
MsiGetProperty
(
hpkg
,
"SourceDir"
,
buffer
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"property not set
\n
"
);
ok
(
!
lstrcmpi
(
buffer
,
"goo"
),
"SourceDir (%s) should be goo
\n
"
,
buffer
);
MsiCloseHandle
(
hpkg
);
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