Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
f29ec238
Commit
f29ec238
authored
Jun 12, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jun 12, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Delete any databases we create at the end of each test.
parent
53041d8f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
package.c
dlls/msi/tests/package.c
+10
-3
No files found.
dlls/msi/tests/package.c
View file @
f29ec238
...
...
@@ -28,6 +28,8 @@
#include "wine/test.h"
static
const
char
msifile
[]
=
"winetest.msi"
;
static
UINT
run_query
(
MSIHANDLE
hdb
,
const
char
*
query
)
{
MSIHANDLE
hview
=
0
;
...
...
@@ -92,13 +94,12 @@ static UINT set_summary_info(MSIHANDLE hdb)
MSIHANDLE
create_package_db
(
void
)
{
MSIHANDLE
hdb
=
0
;
CHAR
szName
[]
=
"winetest.msi"
;
UINT
res
;
DeleteFile
(
szNam
e
);
DeleteFile
(
msifil
e
);
/* create an empty database */
res
=
MsiOpenDatabase
(
szNam
e
,
MSIDBOPEN_CREATE
,
&
hdb
);
res
=
MsiOpenDatabase
(
msifil
e
,
MSIDBOPEN_CREATE
,
&
hdb
);
ok
(
res
==
ERROR_SUCCESS
,
"Failed to create database
\n
"
);
if
(
res
!=
ERROR_SUCCESS
)
return
hdb
;
...
...
@@ -145,6 +146,7 @@ static void test_createpackage(void)
res
=
MsiCloseHandle
(
hPackage
);
ok
(
res
==
ERROR_SUCCESS
,
"Failed to close package
\n
"
);
DeleteFile
(
msifile
);
}
static
void
test_getsourcepath_bad
(
void
)
...
...
@@ -270,6 +272,7 @@ static void test_getsourcepath( void )
}
MsiCloseHandle
(
hpkg
);
DeleteFile
(
msifile
);
}
static
void
test_doaction
(
void
)
...
...
@@ -293,6 +296,7 @@ static void test_doaction( void )
ok
(
r
==
ERROR_FUNCTION_NOT_CALLED
,
"wrong return val
\n
"
);
MsiCloseHandle
(
hpkg
);
DeleteFile
(
msifile
);
}
static
void
test_gettargetpath_bad
(
void
)
...
...
@@ -324,6 +328,7 @@ static void test_gettargetpath_bad(void)
ok
(
r
==
ERROR_DIRECTORY
,
"wrong return val
\n
"
);
MsiCloseHandle
(
hpkg
);
DeleteFile
(
msifile
);
}
static
void
test_settargetpath_bad
(
void
)
...
...
@@ -713,6 +718,7 @@ static void test_condition(void)
ok
(
r
==
MSICONDITION_TRUE
,
"wrong return val
\n
"
);
MsiCloseHandle
(
hpkg
);
DeleteFile
(
msifile
);
}
static
BOOL
check_prop_empty
(
MSIHANDLE
hpkg
,
char
*
prop
)
...
...
@@ -835,6 +841,7 @@ static void test_props(void)
ok
(
sz
==
3
,
"wrong size returned
\n
"
);
MsiCloseHandle
(
hpkg
);
DeleteFile
(
msifile
);
}
START_TEST
(
package
)
...
...
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