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
c0c93d80
Commit
c0c93d80
authored
Sep 12, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices/tests: Mark tests that fail on 64-bit as todo.
parent
43e5f9e4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
7 deletions
+24
-7
writer.c
dlls/webservices/tests/writer.c
+24
-7
No files found.
dlls/webservices/tests/writer.c
View file @
c0c93d80
...
@@ -2222,12 +2222,14 @@ static void test_text_types(void)
...
@@ -2222,12 +2222,14 @@ static void test_text_types(void)
static
void
test_double
(
void
)
static
void
test_double
(
void
)
{
{
static
const
BOOL
is_win64
=
sizeof
(
void
*
)
>
sizeof
(
int
);
WS_XML_STRING
localname
=
{
1
,
(
BYTE
*
)
"t"
},
ns
=
{
0
,
NULL
};
WS_XML_STRING
localname
=
{
1
,
(
BYTE
*
)
"t"
},
ns
=
{
0
,
NULL
};
unsigned
int
fpword
,
fpword_orig
;
unsigned
int
fpword
,
fpword_orig
;
static
const
struct
static
const
struct
{
{
double
val
;
double
val
;
const
char
*
result
;
const
char
*
result
;
BOOL
todo64
;
}
}
tests
[]
=
tests
[]
=
{
{
...
@@ -2240,12 +2242,12 @@ static void test_double(void)
...
@@ -2240,12 +2242,12 @@ static void test_double(void)
{
1
.
0000000000000004
,
"<t>1.0000000000000004</t>"
},
{
1
.
0000000000000004
,
"<t>1.0000000000000004</t>"
},
{
100000000000000
,
"<t>100000000000000</t>"
},
{
100000000000000
,
"<t>100000000000000</t>"
},
{
1000000000000000
,
"<t>1E+15</t>"
},
{
1000000000000000
,
"<t>1E+15</t>"
},
{
0
.
1
,
"<t>0.1</t>"
},
{
0
.
1
,
"<t>0.1</t>"
,
TRUE
},
{
0
.
01
,
"<t>1E-2</t>"
},
{
0
.
01
,
"<t>1E-2</t>"
,
TRUE
},
{
-
0
.
1
,
"<t>-0.1</t>"
},
{
-
0
.
1
,
"<t>-0.1</t>"
,
TRUE
},
{
-
0
.
01
,
"<t>-1E-2</t>"
},
{
-
0
.
01
,
"<t>-1E-2</t>"
,
TRUE
},
{
1.7976931348623158e308
,
"<t>1.7976931348623157E+308</t>"
},
{
1.7976931348623158e308
,
"<t>1.7976931348623157E+308</t>"
,
TRUE
},
{
-
1.7976931348623158e308
,
"<t>-1.7976931348623157E+308</t>"
},
{
-
1.7976931348623158e308
,
"<t>-1.7976931348623157E+308</t>"
,
TRUE
},
};
};
HRESULT
hr
;
HRESULT
hr
;
WS_XML_WRITER
*
writer
;
WS_XML_WRITER
*
writer
;
...
@@ -2269,7 +2271,22 @@ static void test_double(void)
...
@@ -2269,7 +2271,22 @@ static void test_double(void)
hr
=
WsWriteEndElement
(
writer
,
NULL
);
hr
=
WsWriteEndElement
(
writer
,
NULL
);
ok
(
hr
==
S_OK
,
"%lu: got %#lx
\n
"
,
i
,
hr
);
ok
(
hr
==
S_OK
,
"%lu: got %#lx
\n
"
,
i
,
hr
);
check_output
(
writer
,
tests
[
i
].
result
,
__LINE__
);
if
(
tests
[
i
].
todo64
&&
is_win64
)
{
WS_BYTES
bytes
;
ULONG
size
=
sizeof
(
bytes
);
int
len
=
strlen
(
tests
[
i
].
result
);
HRESULT
hr
;
memset
(
&
bytes
,
0
,
sizeof
(
bytes
)
);
hr
=
WsGetWriterProperty
(
writer
,
WS_XML_WRITER_PROPERTY_BYTES
,
&
bytes
,
size
,
NULL
);
ok
(
hr
==
S_OK
,
"%lu: got %#lx
\n
"
,
i
,
hr
);
todo_wine
ok
(
bytes
.
length
==
len
&&
!
memcmp
(
bytes
.
bytes
,
tests
[
i
].
result
,
len
),
"%lu: got %lu %s expected %d %s
\n
"
,
i
,
bytes
.
length
,
debugstr_bytes
(
bytes
.
bytes
,
bytes
.
length
),
len
,
tests
[
i
].
result
);
}
else
check_output
(
writer
,
tests
[
i
].
result
,
__LINE__
);
}
}
hr
=
set_output
(
writer
);
hr
=
set_output
(
writer
);
...
...
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