dinput/tests: Report the driver success and skipped tests counters.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55535
This commit is contained in:
Rémi Bernon 2023-09-07 15:29:00 +02:00 committed by Alexandre Julliard
parent 18ff9ce622
commit 9523dec573
2 changed files with 9 additions and 0 deletions

View file

@ -98,8 +98,11 @@ struct winetest_shared_data
int running_under_wine;
int winetest_report_success;
int winetest_debug;
LONG successes;
LONG failures;
LONG todo_successes;
LONG todo_failures;
LONG skipped;
};
static inline const char *debugstr_pnp( ULONG code )
@ -339,8 +342,11 @@ static inline void winetest_cleanup_( const char *file )
{
data = addr;
InterlockedExchangeAdd( &data->successes, winetest_successes );
InterlockedExchangeAdd( &data->failures, winetest_failures );
InterlockedExchangeAdd( &data->todo_successes, winetest_todo_successes );
InterlockedExchangeAdd( &data->todo_failures, winetest_todo_failures );
InterlockedExchangeAdd( &data->skipped, winetest_skipped );
ZwUnmapViewOfSection( NtCurrentProcess(), addr );
}

View file

@ -520,8 +520,11 @@ void bus_device_stop(void)
SetFilePointer( okfile, 0, NULL, FILE_BEGIN );
SetEndOfFile( okfile );
InterlockedAdd( &winetest_successes, InterlockedExchange( &test_data->successes, 0 ) );
winetest_add_failures( InterlockedExchange( &test_data->failures, 0 ) );
InterlockedAdd( &winetest_todo_successes, InterlockedExchange( &test_data->todo_successes, 0 ) );
winetest_add_failures( InterlockedExchange( &test_data->todo_failures, 0 ) );
InterlockedAdd( &winetest_skipped, InterlockedExchange( &test_data->skipped, 0 ) );
GetFullPathNameW( L"winetest.inf", ARRAY_SIZE(path), path, NULL );
ret = SetupCopyOEMInfW( path, NULL, 0, 0, dest, ARRAY_SIZE(dest), NULL, &filepart );