Made the SQLite unit tests work on Windows (sqlite3.dll wasn't being loaded)

0.8.0.3
Oren Hurvitz 2014-04-02 09:49:57 +03:00
parent 559c66afe6
commit 6b65895736
1 changed files with 3 additions and 0 deletions

View File

@ -99,6 +99,9 @@ namespace OpenSim.Data.Tests
if (Directory.Exists("/proc/ppc64") || Directory.Exists("/proc/dasd")) if (Directory.Exists("/proc/ppc64") || Directory.Exists("/proc/dasd"))
Assert.Ignore(); Assert.Ignore();
if (Util.IsWindows())
Util.LoadArchSpecificWindowsDll("sqlite3.dll");
// for SQLite, if no explicit conn string is specified, use a temp file // for SQLite, if no explicit conn string is specified, use a temp file
if (String.IsNullOrEmpty(m_connStr)) if (String.IsNullOrEmpty(m_connStr))
{ {