Alexandre Julliard : msi/tests: Delete the temp .msi file in all failure cases.
Module: wine Branch: master Commit: 43fb0ecd0717ad1a6aa0702ed68368ee35d3ecda URL: https://gitlab.winehq.org/wine/wine/-/commit/43fb0ecd0717ad1a6aa0702ed68368e... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Mar 29 22:41:36 2024 +0100 msi/tests: Delete the temp .msi file in all failure cases. --- dlls/msi/tests/automation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msi/tests/automation.c b/dlls/msi/tests/automation.c index 45354cc2bb2..d61ee82b1a2 100644 --- a/dlls/msi/tests/automation.c +++ b/dlls/msi/tests/automation.c @@ -423,7 +423,6 @@ static BOOL delete_pf(const CHAR *rel_path, BOOL is_file) static void delete_test_files(void) { - DeleteFileA(msifile); DeleteFileA("msitest\\cabout\\new\\five.txt"); DeleteFileA("msitest\\cabout\\four.txt"); DeleteFileA("msitest\\second\\three.txt"); @@ -2691,6 +2690,7 @@ static void test_Installer(void) /* Installer::InstallProduct and other tests that depend on our product being installed */ test_Installer_InstallProduct(); + DeleteFileA(msifile); } START_TEST(automation)
participants (1)
-
Alexandre Julliard