[PATCH v3 2/6] robocopy/tests: Add stub

Alexandre Julliard julliard at winehq.org
Fri Sep 17 13:32:48 CDT 2021


Florian Eder <others.meder at gmail.com> writes:

> +    WCHAR previous_cwd_path[4096], temp_path[4096];
> +
> +    ok(GetFullPathNameW(L".", ARRAY_SIZE(previous_cwd_path), previous_cwd_path, NULL) != 0, "couldn't get CWD path");
> +    ok(GetTempPathW(ARRAY_SIZE(temp_path), temp_path) != 0, "couldn't get temp folder path");
> +
> +    /* robocopy is only available from Vista onwards, abort test if not available */
> +    if (execute_robocopy(L"robocopy.exe") == -1) return;
> +
> +    ok(SetCurrentDirectoryW(temp_path), "couldn't set CWD to temp folder \"%S\"", temp_path);
> +
> +    /* TODO: conformance tests here */
> +
> +    ok(SetCurrentDirectoryW(previous_cwd_path), "couldn't set CWD to previous CWD folder \"%S\"", previous_cwd_path);

Restoring the current directory on exit is not useful.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list