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
72870276
Commit
72870276
authored
Aug 17, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Aug 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Skip VarDiv tests if there is no I8 and/or UI8 support.
parent
60819600
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
vartest.c
dlls/oleaut32/tests/vartest.c
+38
-0
No files found.
dlls/oleaut32/tests/vartest.c
View file @
72870276
...
...
@@ -6924,11 +6924,19 @@ static void test_VarDiv(void)
{
SKIPTESTDIV
(
leftvt
);
/* Check if we need/have support for I8 */
if
(
leftvt
==
VT_I8
&&
!
HAVE_OLEAUT32_I8
)
continue
;
for
(
rightvt
=
0
;
rightvt
<=
VT_BSTR_BLOB
;
rightvt
++
)
{
BOOL
bFail
=
FALSE
;
SKIPTESTDIV
(
rightvt
);
/* Check if we need/have support for I8 */
if
(
rightvt
==
VT_I8
&&
!
HAVE_OLEAUT32_I8
)
continue
;
/* Native crashes with VT_BYREF */
if
(
ExtraFlags
[
i
]
==
VT_BYREF
)
continue
;
...
...
@@ -7040,7 +7048,10 @@ static void test_VarDiv(void)
VARDIV
(
EMPTY
,
0
,
BSTR
,
num2_str
,
R8
,
0
.
0
);
VARDIV
(
EMPTY
,
0
,
BOOL
,
VARIANT_TRUE
,
R8
,
0
.
0
);
VARDIV
(
EMPTY
,
0
,
UI1
,
2
,
R8
,
0
.
0
);
if
(
HAVE_OLEAUT32_I8
)
{
VARDIV
(
EMPTY
,
0
,
I8
,
2
,
R8
,
0
.
0
);
}
VARDIV
(
NULL
,
0
,
EMPTY
,
0
,
NULL
,
0
);
VARDIV
(
NULL
,
0
,
NULL
,
0
,
NULL
,
0
);
VARDIV
(
NULL
,
0
,
I2
,
2
,
NULL
,
0
);
...
...
@@ -7051,7 +7062,10 @@ static void test_VarDiv(void)
VARDIV
(
NULL
,
0
,
BSTR
,
num2_str
,
NULL
,
0
);
VARDIV
(
NULL
,
0
,
BOOL
,
VARIANT_TRUE
,
NULL
,
0
);
VARDIV
(
NULL
,
0
,
UI1
,
2
,
NULL
,
0
);
if
(
HAVE_OLEAUT32_I8
)
{
VARDIV
(
NULL
,
0
,
I8
,
2
,
NULL
,
0
);
}
VARDIV
(
I2
,
2
,
NULL
,
0
,
NULL
,
0
);
VARDIV
(
I2
,
1
,
I2
,
2
,
R8
,
0
.
5
);
VARDIV
(
I2
,
1
,
I4
,
2
,
R8
,
0
.
5
);
...
...
@@ -7060,7 +7074,10 @@ static void test_VarDiv(void)
VARDIV
(
I2
,
1
,
DATE
,
2
,
R8
,
0
.
5
);
VARDIV
(
I2
,
1
,
BOOL
,
VARIANT_TRUE
,
R8
,
-
1
.
0
);
VARDIV
(
I2
,
1
,
UI1
,
2
,
R8
,
0
.
5
);
if
(
HAVE_OLEAUT32_I8
)
{
VARDIV
(
I2
,
1
,
I8
,
2
,
R8
,
0
.
5
);
}
VARDIV
(
I4
,
1
,
NULL
,
0
,
NULL
,
0
);
VARDIV
(
I4
,
1
,
I2
,
2
,
R8
,
0
.
5
);
VARDIV
(
I4
,
1
,
I4
,
2
,
R8
,
0
.
5
);
...
...
@@ -7070,7 +7087,10 @@ static void test_VarDiv(void)
VARDIV
(
I4
,
1
,
BSTR
,
num2_str
,
R8
,
0
.
5
);
VARDIV
(
I4
,
1
,
BOOL
,
VARIANT_TRUE
,
R8
,
-
1
.
0
);
VARDIV
(
I4
,
1
,
UI1
,
2
,
R8
,
0
.
5
);
if
(
HAVE_OLEAUT32_I8
)
{
VARDIV
(
I4
,
1
,
I8
,
2
,
R8
,
0
.
5
);
}
VARDIV
(
R4
,
1
.
0
f
,
NULL
,
0
,
NULL
,
0
);
VARDIV
(
R4
,
1
.
0
f
,
I2
,
2
,
R4
,
0
.
5
f
);
VARDIV
(
R4
,
1
.
0
f
,
I4
,
2
,
R8
,
0
.
5
);
...
...
@@ -7080,7 +7100,10 @@ static void test_VarDiv(void)
VARDIV
(
R4
,
1
.
0
f
,
BSTR
,
num2_str
,
R8
,
0
.
5
);
VARDIV
(
R4
,
1
.
0
f
,
BOOL
,
VARIANT_TRUE
,
R4
,
-
1
);
VARDIV
(
R4
,
1
.
0
f
,
UI1
,
2
,
R4
,
0
.
5
f
);
if
(
HAVE_OLEAUT32_I8
)
{
VARDIV
(
R4
,
1
.
0
f
,
I8
,
2
,
R8
,
0
.
5
);
}
VARDIV
(
R8
,
1
.
0
,
NULL
,
0
,
NULL
,
0
);
VARDIV
(
R8
,
1
.
0
,
I2
,
2
,
R8
,
0
.
5
);
VARDIV
(
R8
,
1
.
0
,
I4
,
2
,
R8
,
0
.
5
);
...
...
@@ -7090,7 +7113,10 @@ static void test_VarDiv(void)
VARDIV
(
R8
,
1
.
0
,
BSTR
,
num2_str
,
R8
,
0
.
5
);
VARDIV
(
R8
,
1
.
0
,
BOOL
,
VARIANT_TRUE
,
R8
,
-
1
.
0
);
VARDIV
(
R8
,
1
.
0
,
UI1
,
2
,
R8
,
0
.
5
);
if
(
HAVE_OLEAUT32_I8
)
{
VARDIV
(
R8
,
1
.
0
,
I8
,
2
,
R8
,
0
.
5
);
}
VARDIV
(
DATE
,
1
,
NULL
,
0
,
NULL
,
0
);
VARDIV
(
DATE
,
1
,
I2
,
2
,
R8
,
0
.
5
);
VARDIV
(
DATE
,
1
,
I4
,
2
,
R8
,
0
.
5
);
...
...
@@ -7100,7 +7126,10 @@ static void test_VarDiv(void)
VARDIV
(
DATE
,
1
,
BSTR
,
num2_str
,
R8
,
0
.
5
);
VARDIV
(
DATE
,
1
,
BOOL
,
VARIANT_TRUE
,
R8
,
-
1
.
0
);
VARDIV
(
DATE
,
1
,
UI1
,
2
,
R8
,
0
.
5
);
if
(
HAVE_OLEAUT32_I8
)
{
VARDIV
(
DATE
,
1
,
I8
,
2
,
R8
,
0
.
5
);
}
VARDIV
(
BSTR
,
num1_str
,
NULL
,
0
,
NULL
,
0
);
VARDIV
(
BSTR
,
num1_str
,
I2
,
2
,
R8
,
0
.
5
);
VARDIV
(
BSTR
,
num1_str
,
I4
,
2
,
R8
,
0
.
5
);
...
...
@@ -7110,7 +7139,10 @@ static void test_VarDiv(void)
VARDIV
(
BSTR
,
num1_str
,
BSTR
,
num2_str
,
R8
,
0
.
5
);
VARDIV
(
BSTR
,
num1_str
,
BOOL
,
VARIANT_TRUE
,
R8
,
-
1
);
VARDIV
(
BSTR
,
num1_str
,
UI1
,
2
,
R8
,
0
.
5
);
if
(
HAVE_OLEAUT32_I8
)
{
VARDIV
(
BSTR
,
num1_str
,
I8
,
2
,
R8
,
0
.
5
);
}
VARDIV
(
BOOL
,
VARIANT_TRUE
,
NULL
,
0
,
NULL
,
0
);
VARDIV
(
BOOL
,
VARIANT_TRUE
,
I2
,
1
,
R8
,
-
1
.
0
);
VARDIV
(
BOOL
,
VARIANT_FALSE
,
I2
,
1
,
R8
,
0
.
0
);
...
...
@@ -7125,7 +7157,10 @@ static void test_VarDiv(void)
VARDIV
(
BOOL
,
VARIANT_TRUE
,
BOOL
,
VARIANT_TRUE
,
R8
,
1
.
0
);
VARDIV
(
BOOL
,
VARIANT_FALSE
,
BOOL
,
VARIANT_TRUE
,
R8
,
0
.
0
);
VARDIV
(
BOOL
,
VARIANT_TRUE
,
UI1
,
1
,
R8
,
-
1
.
0
);
if
(
HAVE_OLEAUT32_I8
)
{
VARDIV
(
BOOL
,
VARIANT_TRUE
,
I8
,
1
,
R8
,
-
1
.
0
);
}
VARDIV
(
UI1
,
1
,
NULL
,
0
,
NULL
,
0
);
VARDIV
(
UI1
,
1
,
I2
,
2
,
R8
,
0
.
5
);
VARDIV
(
UI1
,
1
,
I4
,
2
,
R8
,
0
.
5
);
...
...
@@ -7135,6 +7170,8 @@ static void test_VarDiv(void)
VARDIV
(
UI1
,
1
,
BSTR
,
num2_str
,
R8
,
0
.
5
);
VARDIV
(
UI1
,
1
,
BOOL
,
VARIANT_TRUE
,
R8
,
-
1
);
VARDIV
(
UI1
,
1
,
UI1
,
2
,
R8
,
0
.
5
);
if
(
HAVE_OLEAUT32_I8
)
{
VARDIV
(
UI1
,
1
,
I8
,
2
,
R8
,
0
.
5
);
VARDIV
(
I8
,
1
,
NULL
,
0
,
NULL
,
0
);
VARDIV
(
I8
,
1
,
I2
,
2
,
R8
,
0
.
5
);
...
...
@@ -7146,6 +7183,7 @@ static void test_VarDiv(void)
VARDIV
(
I8
,
1
,
BOOL
,
VARIANT_TRUE
,
R8
,
-
1
);
VARDIV
(
I8
,
1
,
UI1
,
2
,
R8
,
0
.
5
);
VARDIV
(
I8
,
1
,
I8
,
2
,
R8
,
0
.
5
);
}
/* Manually test some VT_CY, VT_DECIMAL variants */
V_VT
(
&
cy
)
=
VT_CY
;
...
...
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