Commit 30f84ef5 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

shell32/tests: Don't use randomized paths in the shlexec test.

In case of a failure it is necessary to show the path that was passed to ShellExecute(). That means the paths must not be randomized so as not to prevent the TestBot from detecting new failures. Note that because of the registry modifications one cannot run two instances of the test concurrently anyway. Signed-off-by: 's avatarFrancois Gouget <fgouget@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 15e91ac2
......@@ -2693,7 +2693,13 @@ static void init_test(void)
strcpy(filename, "c:\\");
else
GetTempPathA(sizeof(filename), filename);
GetTempFileNameA(filename, "wt", 0, tmpdir);
/* In case of a failure it is necessary to show the path that was passed to
* ShellExecute(). That means the paths must not be randomized so as not to
* prevent the TestBot from detecting new failures.
*/
strcpy(tmpdir, filename);
strcat(tmpdir, "\\wtShlexecDir");
GetLongPathNameA(tmpdir, tmpdir, sizeof(tmpdir));
DeleteFileA( tmpdir );
rc = CreateDirectoryA( tmpdir, NULL );
......@@ -2701,8 +2707,8 @@ static void init_test(void)
/* Set %TMPDIR% for the tests */
SetEnvironmentVariableA("TMPDIR", tmpdir);
rc = GetTempFileNameA(tmpdir, "wt", 0, child_file);
ok(rc != 0, "got %d\n", rc);
strcpy(child_file, tmpdir);
strcat(child_file, "\\wtShlexecFile");
init_event(child_file);
/* Set up the test files */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment