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
762a13eb
Commit
762a13eb
authored
Aug 21, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Aug 22, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Add tests for MsiEvaluateCondition's substring operators.
parent
73137390
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
185 additions
and
0 deletions
+185
-0
package.c
dlls/msi/tests/package.c
+185
-0
No files found.
dlls/msi/tests/package.c
View file @
762a13eb
...
...
@@ -1005,6 +1005,191 @@ static void test_condition(void)
r
=
MsiEvaluateCondition
(
hpkg
,
"bandalmael<>0"
);
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val
\n
"
);
MsiSetProperty
(
hpkg
,
"one"
,
"hi"
);
MsiSetProperty
(
hpkg
,
"two"
,
"hithere"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one >< two"
);
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
MsiSetProperty
(
hpkg
,
"one"
,
"hithere"
);
MsiSetProperty
(
hpkg
,
"two"
,
"hi"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one >< two"
);
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val
\n
"
);
MsiSetProperty
(
hpkg
,
"one"
,
"hello"
);
MsiSetProperty
(
hpkg
,
"two"
,
"hi"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one >< two"
);
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
MsiSetProperty
(
hpkg
,
"one"
,
"hellohithere"
);
MsiSetProperty
(
hpkg
,
"two"
,
"hi"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one >< two"
);
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val
\n
"
);
MsiSetProperty
(
hpkg
,
"one"
,
""
);
MsiSetProperty
(
hpkg
,
"two"
,
"hi"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one >< two"
);
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
MsiSetProperty
(
hpkg
,
"one"
,
"hi"
);
MsiSetProperty
(
hpkg
,
"two"
,
""
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one >< two"
);
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val
\n
"
);
MsiSetProperty
(
hpkg
,
"one"
,
""
);
MsiSetProperty
(
hpkg
,
"two"
,
""
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one >< two"
);
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
MsiSetProperty
(
hpkg
,
"one"
,
"1234"
);
MsiSetProperty
(
hpkg
,
"two"
,
"1"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one >< two"
);
todo_wine
{
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
}
MsiSetProperty
(
hpkg
,
"one"
,
"one 1234"
);
MsiSetProperty
(
hpkg
,
"two"
,
"1"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one >< two"
);
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val
\n
"
);
MsiSetProperty
(
hpkg
,
"one"
,
"hithere"
);
MsiSetProperty
(
hpkg
,
"two"
,
"hi"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one << two"
);
todo_wine
{
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val
\n
"
);
}
MsiSetProperty
(
hpkg
,
"one"
,
"hi"
);
MsiSetProperty
(
hpkg
,
"two"
,
"hithere"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one << two"
);
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
MsiSetProperty
(
hpkg
,
"one"
,
"hi"
);
MsiSetProperty
(
hpkg
,
"two"
,
"hi"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one << two"
);
todo_wine
{
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val
\n
"
);
}
MsiSetProperty
(
hpkg
,
"one"
,
"abcdhithere"
);
MsiSetProperty
(
hpkg
,
"two"
,
"hi"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one << two"
);
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
MsiSetProperty
(
hpkg
,
"one"
,
""
);
MsiSetProperty
(
hpkg
,
"two"
,
"hi"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one << two"
);
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
MsiSetProperty
(
hpkg
,
"one"
,
"hithere"
);
MsiSetProperty
(
hpkg
,
"two"
,
""
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one << two"
);
todo_wine
{
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val
\n
"
);
}
MsiSetProperty
(
hpkg
,
"one"
,
""
);
MsiSetProperty
(
hpkg
,
"two"
,
""
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one << two"
);
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
MsiSetProperty
(
hpkg
,
"one"
,
"1234"
);
MsiSetProperty
(
hpkg
,
"two"
,
"1"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one << two"
);
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
MsiSetProperty
(
hpkg
,
"one"
,
"1234 one"
);
MsiSetProperty
(
hpkg
,
"two"
,
"1"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one << two"
);
todo_wine
{
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val
\n
"
);
}
MsiSetProperty
(
hpkg
,
"one"
,
"hithere"
);
MsiSetProperty
(
hpkg
,
"two"
,
"there"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one >> two"
);
todo_wine
{
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val
\n
"
);
}
MsiSetProperty
(
hpkg
,
"one"
,
"hithere"
);
MsiSetProperty
(
hpkg
,
"two"
,
"hi"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one >> two"
);
todo_wine
{
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
}
MsiSetProperty
(
hpkg
,
"one"
,
"there"
);
MsiSetProperty
(
hpkg
,
"two"
,
"hithere"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one >> two"
);
todo_wine
{
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
}
MsiSetProperty
(
hpkg
,
"one"
,
"there"
);
MsiSetProperty
(
hpkg
,
"two"
,
"there"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one >> two"
);
todo_wine
{
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val
\n
"
);
}
MsiSetProperty
(
hpkg
,
"one"
,
"abcdhithere"
);
MsiSetProperty
(
hpkg
,
"two"
,
"hi"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one >> two"
);
todo_wine
{
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
}
MsiSetProperty
(
hpkg
,
"one"
,
""
);
MsiSetProperty
(
hpkg
,
"two"
,
"there"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one >> two"
);
todo_wine
{
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
}
MsiSetProperty
(
hpkg
,
"one"
,
"there"
);
MsiSetProperty
(
hpkg
,
"two"
,
""
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one >> two"
);
todo_wine
{
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val
\n
"
);
}
MsiSetProperty
(
hpkg
,
"one"
,
""
);
MsiSetProperty
(
hpkg
,
"two"
,
""
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one >> two"
);
todo_wine
{
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
}
MsiSetProperty
(
hpkg
,
"one"
,
"1234"
);
MsiSetProperty
(
hpkg
,
"two"
,
"4"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one >> two"
);
todo_wine
{
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
}
MsiSetProperty
(
hpkg
,
"one"
,
"one 1234"
);
MsiSetProperty
(
hpkg
,
"two"
,
"4"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"one >> two"
);
todo_wine
{
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val
\n
"
);
}
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