Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
598f2be5
Commit
598f2be5
authored
Dec 14, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fix the condition test to not assume MsiNetAssemblySupport is empty.
parent
5dbd834c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
package.c
dlls/msi/tests/package.c
+23
-23
No files found.
dlls/msi/tests/package.c
View file @
598f2be5
...
...
@@ -1196,23 +1196,25 @@ static void test_condition(void)
r
=
MsiEvaluateCondition
(
hpkg
,
"one >> two"
);
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val
\n
"
);
MsiSetProperty
(
hpkg
,
"MsiNetAssemblySupport"
,
NULL
);
/* make sure it's empty */
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport <
\"
1.1.4322
\"
"
);
ok
(
r
==
MSICONDITION_
FALS
E
,
"wrong return val (%d)
\n
"
,
r
);
ok
(
r
==
MSICONDITION_
TRU
E
,
"wrong return val (%d)
\n
"
,
r
);
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport >
\"
1.1.4322
\"
"
);
ok
(
r
==
MSICONDITION_
TRU
E
,
"wrong return val (%d)
\n
"
,
r
);
ok
(
r
==
MSICONDITION_
FALS
E
,
"wrong return val (%d)
\n
"
,
r
);
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport >=
\"
1.1.4322
\"
"
);
ok
(
r
==
MSICONDITION_
TRU
E
,
"wrong return val (%d)
\n
"
,
r
);
ok
(
r
==
MSICONDITION_
FALS
E
,
"wrong return val (%d)
\n
"
,
r
);
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport <=
\"
1.1.4322
\"
"
);
ok
(
r
==
MSICONDITION_
FALS
E
,
"wrong return val (%d)
\n
"
,
r
);
ok
(
r
==
MSICONDITION_
TRU
E
,
"wrong return val (%d)
\n
"
,
r
);
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport <>
\"
1.1.4322
\"
"
);
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val (%d)
\n
"
,
r
);
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport ~<
\"
1.1.4322
\"
"
);
ok
(
r
==
MSICONDITION_
FALS
E
,
"wrong return val (%d)
\n
"
,
r
);
ok
(
r
==
MSICONDITION_
TRU
E
,
"wrong return val (%d)
\n
"
,
r
);
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport <
\"
abcd
\"
"
);
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val (%d)
\n
"
,
r
);
...
...
@@ -1224,13 +1226,13 @@ static void test_condition(void)
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val (%d)
\n
"
,
r
);
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport <
\"
0000001.1.4322
\"
"
);
ok
(
r
==
MSICONDITION_
FALS
E
,
"wrong return val (%d)
\n
"
,
r
);
ok
(
r
==
MSICONDITION_
TRU
E
,
"wrong return val (%d)
\n
"
,
r
);
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport <
\"
1.1.4322.1
\"
"
);
ok
(
r
==
MSICONDITION_
FALS
E
,
"wrong return val (%d)
\n
"
,
r
);
ok
(
r
==
MSICONDITION_
TRU
E
,
"wrong return val (%d)
\n
"
,
r
);
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport <
\"
1.1.4322.1.1
\"
"
);
ok
(
r
==
MSICONDITION_
FALS
E
,
"wrong return val (%d)
\n
"
,
r
);
ok
(
r
==
MSICONDITION_
TRU
E
,
"wrong return val (%d)
\n
"
,
r
);
r
=
MsiEvaluateCondition
(
hpkg
,
"
\"
2
\"
<
\"
1.1"
);
ok
(
r
==
MSICONDITION_ERROR
,
"wrong return val (%d)
\n
"
,
r
);
...
...
@@ -1248,31 +1250,31 @@ static void test_condition(void)
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val (%d)
\n
"
,
r
);
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport <
\"
1.1
\"
"
);
ok
(
r
==
MSICONDITION_
FALS
E
,
"wrong return val (%d)
\n
"
,
r
);
ok
(
r
==
MSICONDITION_
TRU
E
,
"wrong return val (%d)
\n
"
,
r
);
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport <
\"
1
\"
"
);
ok
(
r
==
MSICONDITION_
FALS
E
,
"wrong return val (%d)
\n
"
,
r
);
ok
(
r
==
MSICONDITION_
TRU
E
,
"wrong return val (%d)
\n
"
,
r
);
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport <
\"
0
\"
"
);
ok
(
r
==
MSICONDITION_
FALS
E
,
"wrong return val (%d)
\n
"
,
r
);
ok
(
r
==
MSICONDITION_
TRU
E
,
"wrong return val (%d)
\n
"
,
r
);
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport <
\"
-1
\"
"
);
ok
(
r
==
MSICONDITION_
FALS
E
,
"wrong return val (%d)
\n
"
,
r
);
ok
(
r
==
MSICONDITION_
TRU
E
,
"wrong return val (%d)
\n
"
,
r
);
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport <
\"
a
\"
"
);
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val (%d)
\n
"
,
r
);
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport <
\"
!
\"
"
);
ok
(
r
==
MSICONDITION_
FALS
E
,
"wrong return val (%d)
\n
"
,
r
);
ok
(
r
==
MSICONDITION_
TRU
E
,
"wrong return val (%d)
\n
"
,
r
);
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport <
\"
!
\"
"
);
ok
(
r
==
MSICONDITION_
FALS
E
,
"wrong return val (%d)
\n
"
,
r
);
ok
(
r
==
MSICONDITION_
TRU
E
,
"wrong return val (%d)
\n
"
,
r
);
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport <
\"
/
\"
"
);
ok
(
r
==
MSICONDITION_
FALS
E
,
"wrong return val (%d)
\n
"
,
r
);
ok
(
r
==
MSICONDITION_
TRU
E
,
"wrong return val (%d)
\n
"
,
r
);
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport <
\"
\"
"
);
ok
(
r
==
MSICONDITION_
FALS
E
,
"wrong return val (%d)
\n
"
,
r
);
ok
(
r
==
MSICONDITION_
TRU
E
,
"wrong return val (%d)
\n
"
,
r
);
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport <
\"
azAZ_
\"
"
);
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val (%d)
\n
"
,
r
);
...
...
@@ -1283,22 +1285,20 @@ static void test_condition(void)
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport <
\"
a[a]a
\"
"
);
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val (%d)
\n
"
,
r
);
todo_wine
{
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport <
\"
[a]
\"
"
);
ok
(
r
==
MSICONDITION_
FALS
E
,
"wrong return val (%d)
\n
"
,
r
);
ok
(
r
==
MSICONDITION_
TRU
E
,
"wrong return val (%d)
\n
"
,
r
);
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport <
\"
[a]a
\"
"
);
ok
(
r
==
MSICONDITION_
FALS
E
,
"wrong return val (%d)
\n
"
,
r
);
ok
(
r
==
MSICONDITION_
TRU
E
,
"wrong return val (%d)
\n
"
,
r
);
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport <
\"
{a}
\"
"
);
ok
(
r
==
MSICONDITION_
FALS
E
,
"wrong return val (%d)
\n
"
,
r
);
ok
(
r
==
MSICONDITION_
TRU
E
,
"wrong return val (%d)
\n
"
,
r
);
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport <
\"
{a
\"
"
);
ok
(
r
==
MSICONDITION_
FALS
E
,
"wrong return val (%d)
\n
"
,
r
);
ok
(
r
==
MSICONDITION_
TRU
E
,
"wrong return val (%d)
\n
"
,
r
);
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport <
\"
[a
\"
"
);
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val (%d)
\n
"
,
r
);
}
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val (%d)
\n
"
,
r
);
r
=
MsiEvaluateCondition
(
hpkg
,
"MsiNetAssemblySupport <
\"
a{
\"
"
);
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val (%d)
\n
"
,
r
);
...
...
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