dinput8/tests: Fix reported expected length in test message.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d40d8d9686
commit
10dd608700
|
@ -2105,7 +2105,8 @@ static void test_hidp( HANDLE file, HANDLE async_file, int report_id, BOOL polle
|
|||
ok( GetLastError() == ERROR_IO_PENDING, "ReadFile returned error %u\n", GetLastError() );
|
||||
ret = GetOverlappedResult( async_file, &overlapped, &value, TRUE );
|
||||
ok( ret, "GetOverlappedResult failed, last error %u\n", GetLastError() );
|
||||
ok( value == (report_id ? 3 : 4), "GetOverlappedResult returned length %u, expected 3\n", value );
|
||||
ok( value == (report_id ? 3 : 4), "GetOverlappedResult returned length %u, expected %u\n",
|
||||
value, (report_id ? 3 : 4) );
|
||||
ResetEvent( overlapped.hEvent );
|
||||
|
||||
memcpy( buffer, report, caps.InputReportByteLength );
|
||||
|
@ -2124,11 +2125,13 @@ static void test_hidp( HANDLE file, HANDLE async_file, int report_id, BOOL polle
|
|||
/* wait for second report to be ready */
|
||||
ret = GetOverlappedResult( async_file, &overlapped2, &value, TRUE );
|
||||
ok( ret, "GetOverlappedResult failed, last error %u\n", GetLastError() );
|
||||
ok( value == (report_id ? 3 : 4), "GetOverlappedResult returned length %u, expected 3\n", value );
|
||||
ok( value == (report_id ? 3 : 4), "GetOverlappedResult returned length %u, expected %u\n",
|
||||
value, (report_id ? 3 : 4) );
|
||||
/* first report should be ready and the same */
|
||||
ret = GetOverlappedResult( async_file, &overlapped, &value, FALSE );
|
||||
ok( ret, "GetOverlappedResult failed, last error %u\n", GetLastError() );
|
||||
ok( value == (report_id ? 3 : 4), "GetOverlappedResult returned length %u, expected 3\n", value );
|
||||
ok( value == (report_id ? 3 : 4), "GetOverlappedResult returned length %u, expected %u\n",
|
||||
value, (report_id ? 3 : 4) );
|
||||
ok( memcmp( report, buffer + caps.InputReportByteLength, caps.InputReportByteLength ),
|
||||
"expected different report\n" );
|
||||
ok( !memcmp( report, buffer, caps.InputReportByteLength ), "expected identical reports\n" );
|
||||
|
|
Loading…
Reference in New Issue