msdasql/tests: Remove DSN on cleanup.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7267a2294c
commit
157466da42
|
@ -241,9 +241,22 @@ static void setup_database(void)
|
|||
|
||||
static void cleanup_database(void)
|
||||
{
|
||||
BOOL ret;
|
||||
|
||||
if (winetest_interactive)
|
||||
return;
|
||||
|
||||
ret = SQLConfigDataSource(NULL, ODBC_REMOVE_DSN, "Microsoft Access Driver (*.mdb)", "DSN=wine_test\0\0");
|
||||
if (!ret)
|
||||
{
|
||||
DWORD code;
|
||||
char buffer[1024];
|
||||
WORD size;
|
||||
|
||||
SQLInstallerError(1, &code, buffer, sizeof(buffer), &size);
|
||||
trace("code %d, buffer %s, size %d\n", code, debugstr_a(buffer), size);
|
||||
}
|
||||
|
||||
DeleteFileA(mdbpath);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue