Commit 6afe77a2 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

ntoskrnl/tests: Use wine/test.h in the driver tests.

parent 8afa5708
...@@ -2254,7 +2254,7 @@ static void test_process_memory(const struct main_test_input *test_input) ...@@ -2254,7 +2254,7 @@ static void test_process_memory(const struct main_test_input *test_input)
win_skip("MmCopyVirtualMemory is not available.\n"); win_skip("MmCopyVirtualMemory is not available.\n");
} }
if (!running_under_wine) if (!winetest_platform_is_wine)
{ {
KeStackAttachProcess((PKPROCESS)process, &state); KeStackAttachProcess((PKPROCESS)process, &state);
todo_wine ok(!strcmp(teststr, (char *)(base + test_input->teststr_offset)), todo_wine ok(!strcmp(teststr, (char *)(base + test_input->teststr_offset)),
......
...@@ -55,8 +55,11 @@ struct test_data ...@@ -55,8 +55,11 @@ struct test_data
int running_under_wine; int running_under_wine;
int winetest_report_success; int winetest_report_success;
int winetest_debug; int winetest_debug;
LONG successes;
LONG failures; LONG failures;
LONG todo_successes;
LONG todo_failures; LONG todo_failures;
LONG skipped;
}; };
struct main_test_input struct main_test_input
......
...@@ -386,8 +386,11 @@ static void cat_okfile(void) ...@@ -386,8 +386,11 @@ static void cat_okfile(void)
SetFilePointer(okfile, 0, NULL, FILE_BEGIN); SetFilePointer(okfile, 0, NULL, FILE_BEGIN);
SetEndOfFile(okfile); SetEndOfFile(okfile);
InterlockedAdd(&winetest_successes, InterlockedExchange(&test_data->successes, 0));
winetest_add_failures(InterlockedExchange(&test_data->failures, 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)); winetest_add_failures(InterlockedExchange(&test_data->todo_failures, 0));
InterlockedAdd(&winetest_skipped, InterlockedExchange(&test_data->skipped, 0));
} }
static ULONG64 modified_value; static ULONG64 modified_value;
......
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