diff options
author | Sean Dague | 2008-09-19 17:47:37 +0000 |
---|---|---|
committer | Sean Dague | 2008-09-19 17:47:37 +0000 |
commit | 7ac264c2f0a33ca771ebbe15aae48103627548da (patch) | |
tree | 0d370e75c72c4f38260b325104d68d8f1bb6d06e /OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs | |
parent | * Only allow logins on standalone when the sim has completed it's initial sta... (diff) | |
download | opensim-SC_OLD-7ac264c2f0a33ca771ebbe15aae48103627548da.zip opensim-SC_OLD-7ac264c2f0a33ca771ebbe15aae48103627548da.tar.gz opensim-SC_OLD-7ac264c2f0a33ca771ebbe15aae48103627548da.tar.bz2 opensim-SC_OLD-7ac264c2f0a33ca771ebbe15aae48103627548da.tar.xz |
convert to using proper .net tempfiles, should have done this
initially.
Diffstat (limited to 'OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs')
-rw-r--r-- | OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs b/OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs index 89bb2ae..993f5f5 100644 --- a/OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs +++ b/OpenSim/Data/SQLite/Tests/SQLiteAssetTest.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,14 +41,14 @@ namespace OpenSim.Data.SQLite.Tests | |||
40 | [TestFixture] | 41 | [TestFixture] |
41 | public class SQLiteAssetTest : BasicAssetTest | 42 | public class SQLiteAssetTest : BasicAssetTest |
42 | { | 43 | { |
43 | public string file = "assettest.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(); |
50 | System.Console.WriteLine("SQLiteAssetTest"); | 51 | file = Path.GetTempFileName() + ".db"; |
51 | connect = "URI=file:" + file + ",version=3"; | 52 | connect = "URI=file:" + file + ",version=3"; |
52 | db = new SQLiteAssetData(); | 53 | db = new SQLiteAssetData(); |
53 | db.Initialise(connect); | 54 | db.Initialise(connect); |