webservices/tests: Use todo_wine_if() in tests.
Signed-off-by: André Hentschel <nerv@dawncrow.de> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c957ff6c4c
commit
68b92d052a
|
@ -486,13 +486,7 @@ static void test_WsSetInput(void)
|
||||||
charset = 0xdeadbeef;
|
charset = 0xdeadbeef;
|
||||||
size = sizeof(charset);
|
size = sizeof(charset);
|
||||||
hr = WsGetReaderProperty( reader, WS_XML_READER_PROPERTY_CHARSET, &charset, size, NULL );
|
hr = WsGetReaderProperty( reader, WS_XML_READER_PROPERTY_CHARSET, &charset, size, NULL );
|
||||||
if (tests[i].todo)
|
todo_wine_if (tests[i].todo)
|
||||||
{
|
|
||||||
todo_wine ok( hr == tests[i].hr, "%u: got %08x expected %08x\n", i, hr, tests[i].hr );
|
|
||||||
if (hr == S_OK)
|
|
||||||
todo_wine ok( charset == tests[i].charset, "%u: got %u expected %u\n", i, charset, tests[i].charset );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
ok( hr == tests[i].hr, "%u: got %08x expected %08x\n", i, hr, tests[i].hr );
|
ok( hr == tests[i].hr, "%u: got %08x expected %08x\n", i, hr, tests[i].hr );
|
||||||
if (hr == S_OK)
|
if (hr == S_OK)
|
||||||
|
@ -1082,9 +1076,7 @@ static void test_WsReadNode(void)
|
||||||
ok( hr == S_OK, "%u: got %08x\n", i, hr );
|
ok( hr == S_OK, "%u: got %08x\n", i, hr );
|
||||||
|
|
||||||
hr = WsReadNode( reader, NULL );
|
hr = WsReadNode( reader, NULL );
|
||||||
if (tests[i].todo)
|
todo_wine_if (tests[i].todo)
|
||||||
todo_wine ok( hr == tests[i].hr, "%u: got %08x\n", i, hr );
|
|
||||||
else
|
|
||||||
ok( hr == tests[i].hr, "%u: got %08x\n", i, hr );
|
ok( hr == tests[i].hr, "%u: got %08x\n", i, hr );
|
||||||
if (hr == S_OK)
|
if (hr == S_OK)
|
||||||
{
|
{
|
||||||
|
@ -1094,10 +1086,7 @@ static void test_WsReadNode(void)
|
||||||
ok( node != NULL, "%u: node not set\n", i );
|
ok( node != NULL, "%u: node not set\n", i );
|
||||||
if (node)
|
if (node)
|
||||||
{
|
{
|
||||||
if (tests[i].todo)
|
todo_wine_if (tests[i].todo)
|
||||||
todo_wine
|
|
||||||
ok( node->nodeType == tests[i].type, "%u: got %u\n", i, node->nodeType );
|
|
||||||
else
|
|
||||||
ok( node->nodeType == tests[i].type, "%u: got %u\n", i, node->nodeType );
|
ok( node->nodeType == tests[i].type, "%u: got %u\n", i, node->nodeType );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue