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
04b820c3
Commit
04b820c3
authored
Apr 16, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Apr 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Fix a few tests that fail in win2k.
parent
1edb56ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
10 deletions
+28
-10
vartest.c
dlls/oleaut32/tests/vartest.c
+28
-10
No files found.
dlls/oleaut32/tests/vartest.c
View file @
04b820c3
...
...
@@ -6859,11 +6859,20 @@ static void test_VarPow(void)
"VARPOW: CY value %f, expected %f
\n
"
,
V_R8
(
&
result
),
4
.
0
);
hres
=
pVarPow
(
&
cy
,
&
right
,
&
result
);
ok
(
hres
==
S_OK
&&
V_VT
(
&
result
)
==
VT_R8
,
"VARPOW: expected coerced hres 0x%X type VT_R8, got hres 0x%X type %s!
\n
"
,
S_OK
,
hres
,
vtstr
(
V_VT
(
&
result
)));
ok
(
hres
==
S_OK
&&
EQ_DOUBLE
(
V_R8
(
&
result
),
4
.
0
),
"VARPOW: CY value %f, expected %f
\n
"
,
V_R8
(
&
result
),
4
.
0
);
if
(
hres
==
S_OK
)
{
ok
(
hres
==
S_OK
&&
V_VT
(
&
result
)
==
VT_R8
,
"VARPOW: expected coerced hres 0x%X type VT_R8, got hres 0x%X type %s!
\n
"
,
S_OK
,
hres
,
vtstr
(
V_VT
(
&
result
)));
ok
(
hres
==
S_OK
&&
EQ_DOUBLE
(
V_R8
(
&
result
),
4
.
0
),
"VARPOW: CY value %f, expected %f
\n
"
,
V_R8
(
&
result
),
4
.
0
);
}
else
{
ok
(
hres
==
DISP_E_BADVARTYPE
&&
V_VT
(
&
result
)
==
VT_EMPTY
,
"VARPOW: expected coerced hres 0x%X type VT_EMPTY, got hres 0x%X type %s!
\n
"
,
DISP_E_BADVARTYPE
,
hres
,
vtstr
(
V_VT
(
&
result
)));
}
hres
=
pVarPow
(
&
left
,
&
cy
,
&
result
);
ok
(
hres
==
S_OK
&&
V_VT
(
&
result
)
==
VT_R8
,
...
...
@@ -6887,11 +6896,20 @@ static void test_VarPow(void)
"VARPOW: DECIMAL value %f, expected %f
\n
"
,
V_R8
(
&
result
),
4
.
0
);
hres
=
pVarPow
(
&
dec
,
&
right
,
&
result
);
ok
(
hres
==
S_OK
&&
V_VT
(
&
result
)
==
VT_R8
,
"VARPOW: expected coerced hres 0x%X type VT_R8, got hres 0x%X type %s!
\n
"
,
S_OK
,
hres
,
vtstr
(
V_VT
(
&
result
)));
ok
(
hres
==
S_OK
&&
EQ_DOUBLE
(
V_R8
(
&
result
),
4
.
0
),
"VARPOW: DECIMAL value %f, expected %f
\n
"
,
V_R8
(
&
result
),
4
.
0
);
if
(
hres
==
S_OK
)
{
ok
(
hres
==
S_OK
&&
V_VT
(
&
result
)
==
VT_R8
,
"VARPOW: expected coerced hres 0x%X type VT_R8, got hres 0x%X type %s!
\n
"
,
S_OK
,
hres
,
vtstr
(
V_VT
(
&
result
)));
ok
(
hres
==
S_OK
&&
EQ_DOUBLE
(
V_R8
(
&
result
),
4
.
0
),
"VARPOW: DECIMAL value %f, expected %f
\n
"
,
V_R8
(
&
result
),
4
.
0
);
}
else
{
ok
(
hres
==
DISP_E_BADVARTYPE
&&
V_VT
(
&
result
)
==
VT_EMPTY
,
"VARPOW: expected coerced hres 0x%X type VT_EMPTY, got hres 0x%X type %s!
\n
"
,
DISP_E_BADVARTYPE
,
hres
,
vtstr
(
V_VT
(
&
result
)));
}
SysFreeString
(
num2_str
);
SysFreeString
(
num3_str
);
...
...
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