atl100/tests: Trace GetLastError() when DeleteFile() fails.

test_AtlAxCreateControl()'s DeleteFile() call fails from time to time.
This commit is contained in:
Francois Gouget 2023-01-14 00:20:04 +01:00 committed by Alexandre Julliard
parent e60e8af0a9
commit d384e858c1

View file

@ -786,7 +786,7 @@ static void test_ax_win(void)
/* test file:// scheme on non-existent file */ /* test file:// scheme on non-existent file */
ret = DeleteFileW(pathW); ret = DeleteFileW(pathW);
ok(ret, "DeleteFile failed!\n"); ok(ret, "DeleteFile failed (gle=%lu)\n", GetLastError());
hwnd = CreateWindowW(cls_names[i], file_uri1W, 0, 100, 100, 100, 100, NULL, NULL, NULL, NULL); hwnd = CreateWindowW(cls_names[i], file_uri1W, 0, 100, 100, 100, 100, NULL, NULL, NULL, NULL);
ok(hwnd != NULL, "CreateWindow failed!\n"); ok(hwnd != NULL, "CreateWindow failed!\n");
control = NULL; control = NULL;
@ -1048,7 +1048,7 @@ static void test_AtlAxCreateControl(void)
/* test file:// scheme on non-existent file. */ /* test file:// scheme on non-existent file. */
ret = DeleteFileW(pathW); ret = DeleteFileW(pathW);
ok(ret, "DeleteFile failed!\n"); ok(ret, "DeleteFile failed (gle=%lu)\n", GetLastError());
container = NULL; container = NULL;
control = NULL; control = NULL;
hwnd = create_container_window(); hwnd = create_container_window();