diff options
Diffstat (limited to 'OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs')
-rw-r--r-- | OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs b/OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs index d9e2867..68a10fb 100644 --- a/OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs +++ b/OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs | |||
@@ -26,6 +26,7 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.IO; | ||
29 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
30 | using NUnit.Framework; | 31 | using NUnit.Framework; |
31 | using NUnit.Framework.SyntaxHelpers; | 32 | using NUnit.Framework.SyntaxHelpers; |
@@ -40,13 +41,14 @@ namespace OpenSim.Data.SQLite.Tests | |||
40 | [TestFixture] | 41 | [TestFixture] |
41 | public class SQLiteUserTest : BasicUserTest | 42 | public class SQLiteUserTest : BasicUserTest |
42 | { | 43 | { |
43 | public string file = "usertest.db"; | 44 | public string file; |
44 | public string connect; | 45 | public string connect; |
45 | 46 | ||
46 | [TestFixtureSetUp] | 47 | [TestFixtureSetUp] |
47 | public void Init() | 48 | public void Init() |
48 | { | 49 | { |
49 | SuperInit(); | 50 | SuperInit(); |
51 | file = Path.GetTempFileName() + ".db"; | ||
50 | connect = "URI=file:" + file + ",version=3"; | 52 | connect = "URI=file:" + file + ",version=3"; |
51 | db = new SQLiteUserData(); | 53 | db = new SQLiteUserData(); |
52 | db.Initialise(connect); | 54 | db.Initialise(connect); |