Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
8503ad17
Commit
8503ad17
authored
Oct 29, 2019
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Run the package tests from a temporary directory.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1b4b37cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
package.c
dlls/msi/tests/package.c
+13
-1
No files found.
dlls/msi/tests/package.c
View file @
8503ad17
...
@@ -9640,15 +9640,25 @@ static void test_top_level_action(void)
...
@@ -9640,15 +9640,25 @@ static void test_top_level_action(void)
START_TEST
(
package
)
START_TEST
(
package
)
{
{
char
temp_path
[
MAX_PATH
],
prev_path
[
MAX_PATH
];
STATEMGRSTATUS
status
;
STATEMGRSTATUS
status
;
BOOL
ret
=
FALSE
;
BOOL
ret
=
FALSE
;
DWORD
len
;
init_functionpointers
();
init_functionpointers
();
if
(
pIsWow64Process
)
if
(
pIsWow64Process
)
pIsWow64Process
(
GetCurrentProcess
(),
&
is_wow64
);
pIsWow64Process
(
GetCurrentProcess
(),
&
is_wow64
);
GetCurrentDirectoryA
(
MAX_PATH
,
CURR_DIR
);
GetCurrentDirectoryA
(
MAX_PATH
,
prev_path
);
GetTempPathA
(
MAX_PATH
,
temp_path
);
SetCurrentDirectoryA
(
temp_path
);
lstrcpyA
(
CURR_DIR
,
temp_path
);
len
=
lstrlenA
(
CURR_DIR
);
if
(
len
&&
(
CURR_DIR
[
len
-
1
]
==
'\\'
))
CURR_DIR
[
len
-
1
]
=
0
;
/* Create a restore point ourselves so we circumvent the multitude of restore points
/* Create a restore point ourselves so we circumvent the multitude of restore points
* that would have been created by all the installation and removal tests.
* that would have been created by all the installation and removal tests.
...
@@ -9706,4 +9716,6 @@ START_TEST(package)
...
@@ -9706,4 +9716,6 @@ START_TEST(package)
if
(
ret
)
if
(
ret
)
remove_restore_point
(
status
.
llSequenceNumber
);
remove_restore_point
(
status
.
llSequenceNumber
);
}
}
SetCurrentDirectoryA
(
prev_path
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment