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
f5c72fd2
Commit
f5c72fd2
authored
Jun 05, 2006
by
Huw Davies
Committed by
Alexandre Julliard
Jun 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Add some integer condition tests.
parent
99fa40e2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
+45
-0
package.c
dlls/msi/tests/package.c
+45
-0
No files found.
dlls/msi/tests/package.c
View file @
f5c72fd2
...
@@ -381,9 +381,54 @@ static void test_condition(void)
...
@@ -381,9 +381,54 @@ static void test_condition(void)
r
=
MsiEvaluateCondition
(
hpkg
,
"0 = 1"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"0 = 1"
);
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"0 > 1"
);
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"0 ~> 1"
);
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"1 > 1"
);
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"1 ~> 1"
);
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"0 >= 1"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"0 >= 1"
);
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"0 ~>= 1"
);
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"1 >= 1"
);
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val
\n
"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"1 ~>= 1"
);
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val
\n
"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"0 < 1"
);
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val
\n
"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"0 ~< 1"
);
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val
\n
"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"1 < 1"
);
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"1 ~< 1"
);
ok
(
r
==
MSICONDITION_FALSE
,
"wrong return val
\n
"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"0 <= 1"
);
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val
\n
"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"0 ~<= 1"
);
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val
\n
"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"1 <= 1"
);
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val
\n
"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"1 ~<= 1"
);
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val
\n
"
);
r
=
MsiEvaluateCondition
(
hpkg
,
"0 >="
);
r
=
MsiEvaluateCondition
(
hpkg
,
"0 >="
);
ok
(
r
==
MSICONDITION_ERROR
,
"wrong return val
\n
"
);
ok
(
r
==
MSICONDITION_ERROR
,
"wrong return val
\n
"
);
...
...
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