mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
convert to using proper .net tempfiles, should have done this
initially.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user