convert to using proper .net tempfiles, should have done this

initially.
0.6.0-stable
Sean Dague 2008-09-19 17:47:37 +00:00
parent 5fb7b485b2
commit 7ac264c2f0
4 changed files with 13 additions and 4 deletions

View File

@ -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);

View File

@ -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);
}

View File

@ -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);

View File

@ -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);