Module: wine Branch: master Commit: d384e858c1889e7749bdd141fb764f87acfed95c URL: https://gitlab.winehq.org/wine/wine/-/commit/d384e858c1889e7749bdd141fb764f8...
Author: Francois Gouget fgouget@codeweavers.com Date: Sat Jan 14 00:20:04 2023 +0100
atl100/tests: Trace GetLastError() when DeleteFile() fails.
test_AtlAxCreateControl()'s DeleteFile() call fails from time to time.
---
dlls/atl100/tests/atl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/atl100/tests/atl.c b/dlls/atl100/tests/atl.c index a40c38df25a..2fad97d8008 100644 --- a/dlls/atl100/tests/atl.c +++ b/dlls/atl100/tests/atl.c @@ -786,7 +786,7 @@ static void test_ax_win(void)
/* test file:// scheme on non-existent file */ 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); ok(hwnd != NULL, "CreateWindow failed!\n"); control = NULL; @@ -1048,7 +1048,7 @@ static void test_AtlAxCreateControl(void)
/* test file:// scheme on non-existent file. */ ret = DeleteFileW(pathW); - ok(ret, "DeleteFile failed!\n"); + ok(ret, "DeleteFile failed (gle=%lu)\n", GetLastError()); container = NULL; control = NULL; hwnd = create_container_window();