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
04f11ee5
Commit
04f11ee5
authored
Jul 07, 2014
by
Sebastian Lackner
Committed by
Alexandre Julliard
Jul 09, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Add additional tests for VarDecAdd.
parent
0a4c7860
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
vartype.c
dlls/oleaut32/tests/vartype.c
+31
-0
No files found.
dlls/oleaut32/tests/vartype.c
View file @
04f11ee5
...
...
@@ -4408,9 +4408,40 @@ static void test_VarDecAdd(void)
ok
(
hres
==
DISP_E_OVERFLOW
,
"Expected overflow, got (%d,%d,%d,(%8x,%8x)x) hres 0x%08x
\n
"
,
S
(
U
(
out
)).
scale
,
S
(
U
(
out
)).
sign
,
out
.
Hi32
,
S1
(
U1
(
out
)).
Mid32
,
S1
(
U1
(
out
)).
Lo32
,
hres
);
SETDEC64
(
l
,
1
,
0
,
0xffffffff
,
0xffffffff
,
0xffffffff
);
SETDEC
(
r
,
1
,
0
,
0
,
1
);
MATH2
(
VarDecAdd
);
todo_wine
EXPECTDEC64
(
0
,
0
,
0x19999999
,
0x99999999
,
0x9999999A
);
SETDEC64
(
l
,
0
,
0
,
0xe22ea493
,
0xb30310a7
,
0x70000000
);
SETDEC64
(
r
,
0
,
0
,
0xe22ea493
,
0xb30310a7
,
0x70000000
);
MATH2
(
VarDecAdd
);
ok
(
hres
==
DISP_E_OVERFLOW
,
"Expected overflow, got (%d,%d,%d,(%8x,%8x)x) hres 0x%08x
\n
"
,
S
(
U
(
out
)).
scale
,
S
(
U
(
out
)).
sign
,
out
.
Hi32
,
S1
(
U1
(
out
)).
Mid32
,
S1
(
U1
(
out
)).
Lo32
,
hres
);
SETDEC64
(
l
,
1
,
0
,
0xe22ea493
,
0xb30310a7
,
0x70000000
);
SETDEC64
(
r
,
1
,
0
,
0xe22ea493
,
0xb30310a7
,
0x70000000
);
MATH2
(
VarDecAdd
);
todo_wine
EXPECTDEC64
(
0
,
0
,
0x2d3c8750
,
0xbd670354
,
0xb0000000
);
SETDEC
(
l
,
3
,
128
,
0
,
123456
);
SETDEC64
(
r
,
0
,
0
,
0xFFFFFFFF
,
0xFFFFFFFF
,
0xFFFFFFFF
);
MATH2
(
VarDecAdd
);
todo_wine
EXPECTDEC64
(
0
,
0
,
-
1
,
0xFFFFFFFF
,
0xFFFFFF84
);
SETDEC
(
l
,
3
,
0
,
0
,
123456
);
SETDEC64
(
r
,
0
,
0
,
0xFFFFFFFF
,
0xFFFFFFFF
,
0xFFFFFFFF
);
MATH2
(
VarDecAdd
);
ok
(
hres
==
DISP_E_OVERFLOW
,
"Expected overflow, got (%d,%d,%d,(%8x,%8x)x) hres 0x%08x
\n
"
,
S
(
U
(
out
)).
scale
,
S
(
U
(
out
)).
sign
,
out
.
Hi32
,
S1
(
U1
(
out
)).
Mid32
,
S1
(
U1
(
out
)).
Lo32
,
hres
);
SETDEC
(
l
,
4
,
0
,
0
,
123456
);
SETDEC64
(
r
,
0
,
0
,
0xFFFFFFFF
,
0xFFFFFFFF
,
0xFFFFFFFF
);
MATH2
(
VarDecAdd
);
ok
(
hres
==
DISP_E_OVERFLOW
,
"Expected overflow, got (%d,%d,%d,(%8x,%8x)x) hres 0x%08x
\n
"
,
S
(
U
(
out
)).
scale
,
S
(
U
(
out
)).
sign
,
out
.
Hi32
,
S1
(
U1
(
out
)).
Mid32
,
S1
(
U1
(
out
)).
Lo32
,
hres
);
SETDEC
(
l
,
5
,
0
,
0
,
123456
);
SETDEC64
(
r
,
0
,
0
,
0xFFFFFFFF
,
0xFFFFFFFF
,
0xFFFFFFFF
);
MATH2
(
VarDecAdd
);
ok
(
hres
==
DISP_E_OVERFLOW
,
"Expected overflow, got (%d,%d,%d,(%8x,%8x)x) hres 0x%08x
\n
"
,
S
(
U
(
out
)).
scale
,
S
(
U
(
out
)).
sign
,
out
.
Hi32
,
S1
(
U1
(
out
)).
Mid32
,
S1
(
U1
(
out
)).
Lo32
,
hres
);
SETDEC
(
l
,
6
,
0
,
0
,
123456
);
SETDEC64
(
r
,
0
,
0
,
0xFFFFFFFF
,
0xFFFFFFFF
,
0xFFFFFFFF
);
MATH2
(
VarDecAdd
);
todo_wine
EXPECTDEC64
(
0
,
0
,
-
1
,
0xFFFFFFFF
,
0xFFFFFFFF
);
SETDEC
(
l
,
3
,
128
,
0
,
123456
);
SETDEC64
(
r
,
0
,
0
,
0x19999999
,
0x99999999
,
0x99999999
);
MATH2
(
VarDecAdd
);
todo_wine
EXPECTDEC64
(
1
,
0
,
-
1
,
0xFFFFFFFF
,
0xFFFFFB27
);
SETDEC
(
l
,
3
,
128
,
0
,
123567
);
SETDEC64
(
r
,
0
,
0
,
0x19999999
,
0x99999999
,
0x99999999
);
MATH2
(
VarDecAdd
);
todo_wine
EXPECTDEC64
(
1
,
0
,
-
1
,
0xFFFFFFFF
,
0xFFFFFB26
);
/* Promotes to the highest scale, so here the results are in the scale of 2 */
SETDEC
(
l
,
2
,
0
,
0
,
0
);
SETDEC
(
r
,
0
,
0
,
0
,
0
);
MATH2
(
VarDecAdd
);
EXPECTDEC
(
2
,
0
,
0
,
0
);
SETDEC
(
l
,
2
,
0
,
0
,
100
);
SETDEC
(
r
,
0
,
0
,
0
,
1
);
MATH2
(
VarDecAdd
);
EXPECTDEC
(
2
,
0
,
0
,
200
);
...
...
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