kernel32: add tests for recasing files

Dmitry Timoshkov dmitry at codeweavers.com
Tue Feb 17 21:29:06 CST 2009


"Austin English" <austinenglish at 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.



More information about the wine-devel mailing list