mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 22:56:17 +00:00
webservices/tests: Mark tests that fail on 64-bit as todo.
This commit is contained in:
parent
43e5f9e4bf
commit
c0c93d8017
|
@ -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)
|
||||||
{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)
|
||||||
|
|
||||||
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 );
|
||||||
|
|
Loading…
Reference in a new issue