webservices/tests: Fix WsReadValue type argument values (Clang).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5eff8517b2
commit
3d94c1ac4d
|
@ -3351,23 +3351,23 @@ static void test_WsReadValue(void)
|
|||
ok( hr == S_OK, "got %08x\n", hr );
|
||||
|
||||
prepare_struct_type_test( reader, "<t>1</t>" );
|
||||
hr = WsReadValue( NULL, WS_UINT32_TYPE, &val, sizeof(val), NULL );
|
||||
hr = WsReadValue( NULL, WS_UINT32_VALUE_TYPE, &val, sizeof(val), NULL );
|
||||
ok( hr == E_INVALIDARG, "got %08x\n", hr );
|
||||
|
||||
prepare_struct_type_test( reader, "<t>1</t>" );
|
||||
hr = WsReadValue( reader, WS_UINT32_TYPE, NULL, sizeof(val), NULL );
|
||||
hr = WsReadValue( reader, WS_UINT32_VALUE_TYPE, NULL, sizeof(val), NULL );
|
||||
ok( hr == E_INVALIDARG, "got %08x\n", hr );
|
||||
|
||||
/* reader must be positioned correctly */
|
||||
prepare_struct_type_test( reader, "<t>1</t>" );
|
||||
hr = WsReadValue( reader, WS_UINT32_TYPE, &val, sizeof(val), NULL );
|
||||
hr = WsReadValue( reader, WS_UINT32_VALUE_TYPE, &val, sizeof(val), NULL );
|
||||
ok( hr == WS_E_INVALID_FORMAT, "got %08x\n", hr );
|
||||
|
||||
prepare_struct_type_test( reader, "<t>1</t>" );
|
||||
hr = WsReadToStartElement( reader, NULL, NULL, NULL, NULL );
|
||||
ok( hr == S_OK, "got %08x\n", hr );
|
||||
|
||||
hr = WsReadValue( reader, WS_UINT32_TYPE, &val, sizeof(val), NULL );
|
||||
hr = WsReadValue( reader, WS_UINT32_VALUE_TYPE, &val, sizeof(val), NULL );
|
||||
ok( hr == WS_E_INVALID_FORMAT, "got %08x\n", hr );
|
||||
|
||||
prepare_struct_type_test( reader, "<t>1</t>" );
|
||||
|
@ -3378,7 +3378,7 @@ static void test_WsReadValue(void)
|
|||
ok( hr == S_OK, "got %08x\n", hr );
|
||||
|
||||
val = 0xdeadbeef;
|
||||
hr = WsReadValue( reader, WS_UINT32_TYPE, &val, sizeof(val), NULL );
|
||||
hr = WsReadValue( reader, WS_UINT32_VALUE_TYPE, &val, sizeof(val), NULL );
|
||||
ok( hr == S_OK, "got %08x\n", hr );
|
||||
ok( val == 1, "got %u\n", val );
|
||||
|
||||
|
@ -3386,7 +3386,7 @@ static void test_WsReadValue(void)
|
|||
hr = WsReadToStartElement( reader, NULL, NULL, NULL, NULL );
|
||||
ok( hr == S_OK, "got %08x\n", hr );
|
||||
|
||||
hr = WsReadValue( reader, WS_UINT32_TYPE, &val, sizeof(val), NULL );
|
||||
hr = WsReadValue( reader, WS_UINT32_VALUE_TYPE, &val, sizeof(val), NULL );
|
||||
ok( hr == WS_E_INVALID_FORMAT, "got %08x\n", hr );
|
||||
|
||||
WsFreeReader( reader );
|
||||
|
|
Loading…
Reference in New Issue