Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52970 Signed-off-by: Nikolay Sivov nsivov@codeweavers.com --- dlls/kernelbase/tests/process.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/kernelbase/tests/process.c b/dlls/kernelbase/tests/process.c index 077ee1082dd..bacf9057836 100644 --- a/dlls/kernelbase/tests/process.c +++ b/dlls/kernelbase/tests/process.c @@ -96,6 +96,7 @@ static void test_MapViewOfFile3(void) static const char testfile[] = "testfile.xxx"; HANDLE file, mapping; void *ptr; + BOOL ret;
if (!pMapViewOfFile3) { @@ -118,8 +119,10 @@ static void test_MapViewOfFile3(void) ok( ptr != NULL, "MapViewOfFile FILE_MAP_READ error %lu\n", GetLastError() ); UnmapViewOfFile( ptr );
+ CloseHandle( mapping ); CloseHandle( file ); - DeleteFileA( testfile ); + ret = DeleteFileA( testfile ); + ok(ret, "Failed to delete a test file.\n"); }
START_TEST(process)