Zhiyi Zhang (@zhiyi) commented about dlls/kernel32/tests/file.c:
+ wcscat(long_path, pathW); + wcscat(long_path, a); + SetLastError(0xdeadbeef); + ret = DeleteFileW(long_path); + todo_wine ok(ret, "DeleteFileW: error %ld\n", GetLastError()); + + ret = CopyFileExW(pathsubW, long_path, NULL, NULL, NULL, 0); + ok(ret, "got error %lu\n", GetLastError()); + + wcscpy(long_path, pathW); + wcscat(long_path, a); + ret = DeleteFileW(long_path); + todo_wine ok(!ret, "Unexpected DeleteFileW successed, %s\n", wine_dbgstr_w(long_path)); + } + + DeleteFileW(pathsubW); The DeleteFile tests can be merged with the previous patch.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/7540#note_109459