Commit 58870ce8 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: Clean up after the package tests.

parent eb18bd94
...@@ -1655,6 +1655,8 @@ static void test_states(void) ...@@ -1655,6 +1655,8 @@ static void test_states(void)
hpkg = package_from_db( hdb ); hpkg = package_from_db( hdb );
ok( hpkg, "failed to create package\n"); ok( hpkg, "failed to create package\n");
MsiCloseHandle( hdb );
state = 0xdeadbee; state = 0xdeadbee;
action = 0xdeadbee; action = 0xdeadbee;
r = MsiGetFeatureState(hpkg, "one", &state, &action); r = MsiGetFeatureState(hpkg, "one", &state, &action);
...@@ -2057,6 +2059,7 @@ static void test_states(void) ...@@ -2057,6 +2059,7 @@ static void test_states(void)
ok( action == INSTALLSTATE_LOCAL, "Expected INSTALLSTATE_LOCAL, got %d\n", action); ok( action == INSTALLSTATE_LOCAL, "Expected INSTALLSTATE_LOCAL, got %d\n", action);
MsiCloseHandle( hpkg ); MsiCloseHandle( hpkg );
DeleteFileA( msifile );
} }
static void test_getproperty(void) static void test_getproperty(void)
...@@ -2194,6 +2197,8 @@ static void test_removefiles(void) ...@@ -2194,6 +2197,8 @@ static void test_removefiles(void)
hpkg = package_from_db( hdb ); hpkg = package_from_db( hdb );
ok( hpkg, "failed to create package\n"); ok( hpkg, "failed to create package\n");
MsiCloseHandle( hdb );
create_test_file( "hydrogen.txt" ); create_test_file( "hydrogen.txt" );
create_test_file( "helium.txt" ); create_test_file( "helium.txt" );
create_test_file( "lithium.txt" ); create_test_file( "lithium.txt" );
...@@ -2280,6 +2285,8 @@ static void test_appsearch(void) ...@@ -2280,6 +2285,8 @@ static void test_appsearch(void)
hpkg = package_from_db( hdb ); hpkg = package_from_db( hdb );
ok( hpkg, "failed to create package\n"); ok( hpkg, "failed to create package\n");
MsiCloseHandle( hdb );
r = MsiDoAction( hpkg, "AppSearch" ); r = MsiDoAction( hpkg, "AppSearch" );
ok( r == ERROR_SUCCESS, "AppSearch failed: %d\n", r); ok( r == ERROR_SUCCESS, "AppSearch failed: %d\n", r);
...@@ -2466,6 +2473,8 @@ static void test_featureparents(void) ...@@ -2466,6 +2473,8 @@ static void test_featureparents(void)
hpkg = package_from_db( hdb ); hpkg = package_from_db( hdb );
ok( hpkg, "failed to create package\n"); ok( hpkg, "failed to create package\n");
MsiCloseHandle( hdb );
r = MsiDoAction( hpkg, "CostInitialize"); r = MsiDoAction( hpkg, "CostInitialize");
ok( r == ERROR_SUCCESS, "cost init failed\n"); ok( r == ERROR_SUCCESS, "cost init failed\n");
...@@ -2689,6 +2698,7 @@ static void test_featureparents(void) ...@@ -2689,6 +2698,7 @@ static void test_featureparents(void)
ok( action == INSTALLSTATE_UNKNOWN, "Expected INSTALLSTATE_UNKNOWN, got %d\n", action); ok( action == INSTALLSTATE_UNKNOWN, "Expected INSTALLSTATE_UNKNOWN, got %d\n", action);
MsiCloseHandle(hpkg); MsiCloseHandle(hpkg);
DeleteFileA(msifile);
} }
static void test_installprops(void) static void test_installprops(void)
......
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