From 7ac264c2f0a33ca771ebbe15aae48103627548da Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Fri, 19 Sep 2008 17:47:37 +0000 Subject: convert to using proper .net tempfiles, should have done this initially. --- OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs | 5 +++-- OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs | 6 +++++- OpenSim/Data/SQLite/Tests/SQLiteRegionTest.cs | 2 ++ OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs | 4 +++- 4 files changed, 13 insertions(+), 4 deletions(-) (limited to 'OpenSim/Data') 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 @@ */ using System; +using System.IO; using System.Collections.Generic; using NUnit.Framework; using NUnit.Framework.SyntaxHelpers; @@ -40,14 +41,14 @@ namespace OpenSim.Data.SQLite.Tests [TestFixture] public class SQLiteAssetTest : BasicAssetTest { - public string file = "assettest.db"; + public string file; public string connect; [TestFixtureSetUp] public void Init() { SuperInit(); - System.Console.WriteLine("SQLiteAssetTest"); + file = Path.GetTempFileName() + ".db"; connect = "URI=file:" + file + ",version=3"; db = new SQLiteAssetData(); db.Initialise(connect); diff --git a/OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs b/OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs index 998229f..55a1f75 100644 --- a/OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs +++ b/OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs @@ -26,6 +26,7 @@ */ using System; +using System.IO; using System.Collections.Generic; using NUnit.Framework; using NUnit.Framework.SyntaxHelpers; @@ -41,7 +42,7 @@ namespace OpenSim.Data.SQLite.Tests [TestFixture] public class SQLiteInventoryTest : BasicInventoryTest { - public string file = "inventorytest.db"; + public string file; public string connect; [TestFixtureSetUp] @@ -56,7 +57,10 @@ namespace OpenSim.Data.SQLite.Tests { // I don't care, just leave log4net off } + + file = Path.GetTempFileName() + ".db"; connect = "URI=file:" + file + ",version=3"; + db = new SQLiteInventoryStore(); db.Initialise(connect); } diff --git a/OpenSim/Data/SQLite/Tests/SQLiteRegionTest.cs b/OpenSim/Data/SQLite/Tests/SQLiteRegionTest.cs index e827638..b188ead 100644 --- a/OpenSim/Data/SQLite/Tests/SQLiteRegionTest.cs +++ b/OpenSim/Data/SQLite/Tests/SQLiteRegionTest.cs @@ -26,6 +26,7 @@ */ using System; +using System.IO; using System.Collections.Generic; using NUnit.Framework; using NUnit.Framework.SyntaxHelpers; @@ -47,6 +48,7 @@ namespace OpenSim.Data.SQLite.Tests public void Init() { SuperInit(); + file = Path.GetTempFileName() + ".db"; connect = "URI=file:" + file + ",version=3"; db = new SQLiteRegionData(); db.Initialise(connect); 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 @@ */ using System; +using System.IO; using System.Collections.Generic; using NUnit.Framework; using NUnit.Framework.SyntaxHelpers; @@ -40,13 +41,14 @@ namespace OpenSim.Data.SQLite.Tests [TestFixture] public class SQLiteUserTest : BasicUserTest { - public string file = "usertest.db"; + public string file; public string connect; [TestFixtureSetUp] public void Init() { SuperInit(); + file = Path.GetTempFileName() + ".db"; connect = "URI=file:" + file + ",version=3"; db = new SQLiteUserData(); db.Initialise(connect); -- cgit v1.1