Commit 5dd87ec9 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

kernel32: Log more information in case of a test failure, and don't run tests…

kernel32: Log more information in case of a test failure, and don't run tests that are guaranteed to fail.
parent 0edcef6d
......@@ -2217,7 +2217,9 @@ static void test_ReplaceFileA(void)
/* make sure that the "replaced" file has the size of the replacement file */
hReplacedFile = CreateFileA(replaced, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, 0);
ok(hReplacedFile != INVALID_HANDLE_VALUE,
"failed to open replaced file\n");
"failed to open replaced file: %d\n", GetLastError());
if (hReplacedFile != INVALID_HANDLE_VALUE)
{
ret = GetFileSize(hReplacedFile, NULL);
ok(ret == sizeof(replacementData),
"replaced file has wrong size %d\n", ret);
......@@ -2238,6 +2240,9 @@ static void test_ReplaceFileA(void)
ftReplaced.dwHighDateTime, ftReplaced.dwLowDateTime,
ftReplacement.dwHighDateTime, ftReplacement.dwLowDateTime );
CloseHandle(hReplacedFile);
}
else
skip("couldn't open replacement file, skipping tests\n");
/* re-create replacement file for pass w/o backup (blank) */
ret = GetTempFileNameA(temp_path, prefix, 0, replacement);
......
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