Re: kernel32: add tests for recasing files
"Austin English" <austinenglish(a)gmail.com> wrote:
+ /* create a temporary file */ + uUnique = GetTempFileNameA(tempdir, "pfx", 0, source); + ok(uUnique != 0, "GetTempFileNameA error %d\n", GetLastError()); + + /* get the same filename as above with upper case + prefix and without creating any file */ + ret = GetTempFileNameA(tempdir, "PFX", uUnique, dest); + ok(ret != 0, "GetTempFileNameA error %d\n", GetLastError()); + + /* MoveFile should be able to change the case of the letters */ + ret = MoveFileA(source, dest); + todo_wine { + ok(ret, "MoveFileA: failed, error %d\n", GetLastError()); + }
The comment above about expected MoveFile behaviour is incorrect since the test doesn't test what it implies. What most likely happens is that MoveFile should be a noop if source and destination file names are the same, and in that case 'MoveFileA(source, source);' is enough to test. -- Dmitry.
participants (1)
-
Dmitry Timoshkov