Commit 9523dec5 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

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

parent 18ff9ce6
......@@ -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 );
}
......
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment