Commit 157466da authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

msdasql/tests: Remove DSN on cleanup.

parent 7267a229
...@@ -241,9 +241,22 @@ static void setup_database(void) ...@@ -241,9 +241,22 @@ static void setup_database(void)
static void cleanup_database(void) static void cleanup_database(void)
{ {
BOOL ret;
if (winetest_interactive) if (winetest_interactive)
return; 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); DeleteFileA(mdbpath);
} }
......
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