From de1aef949918af174315cb11835c4c93bed7711c Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Fri, 24 Apr 2009 12:40:42 +0000 Subject: silly C# not letting me use a File.Exists test for a directory. Don't you know a directory is just a special kind of file on Linux. --- OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs | 2 +- OpenSim/Data/SQLite/Tests/SQLiteEstateTest.cs | 2 +- OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs | 2 +- OpenSim/Data/SQLite/Tests/SQLiteRegionTest.cs | 2 +- OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'OpenSim/Data') diff --git a/OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs b/OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs index b99b248..ac47059 100644 --- a/OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs +++ b/OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs @@ -42,7 +42,7 @@ namespace OpenSim.Data.SQLite.Tests public void Init() { // SQLite doesn't work on power linux - if (File.Exists("/proc/ppc64")) + if (Directory.Exists("/proc/ppc64")) { Assert.Ignore(); } diff --git a/OpenSim/Data/SQLite/Tests/SQLiteEstateTest.cs b/OpenSim/Data/SQLite/Tests/SQLiteEstateTest.cs index fd157c6..31b37f3 100644 --- a/OpenSim/Data/SQLite/Tests/SQLiteEstateTest.cs +++ b/OpenSim/Data/SQLite/Tests/SQLiteEstateTest.cs @@ -42,7 +42,7 @@ namespace OpenSim.Data.SQLite.Tests public void Init() { // SQLite doesn't work on power linux - if (File.Exists("/proc/ppc64")) + if (Directory.Exists("/proc/ppc64")) { Assert.Ignore(); } diff --git a/OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs b/OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs index c70be6d..e5d3c28 100644 --- a/OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs +++ b/OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs @@ -42,7 +42,7 @@ namespace OpenSim.Data.SQLite.Tests public void Init() { // SQLite doesn't work on power linux - if (File.Exists("/proc/ppc64")) + if (Directory.Exists("/proc/ppc64")) { Assert.Ignore(); } diff --git a/OpenSim/Data/SQLite/Tests/SQLiteRegionTest.cs b/OpenSim/Data/SQLite/Tests/SQLiteRegionTest.cs index da8f74f..0c6d26a 100644 --- a/OpenSim/Data/SQLite/Tests/SQLiteRegionTest.cs +++ b/OpenSim/Data/SQLite/Tests/SQLiteRegionTest.cs @@ -42,7 +42,7 @@ namespace OpenSim.Data.SQLite.Tests public void Init() { // SQLite doesn't work on power linux - if (File.Exists("/proc/ppc64")) + if (Directory.Exists("/proc/ppc64")) { Assert.Ignore(); } diff --git a/OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs b/OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs index 06465e8..d70e228 100644 --- a/OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs +++ b/OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs @@ -42,7 +42,7 @@ namespace OpenSim.Data.SQLite.Tests public void Init() { // SQLite doesn't work on power linux - if (File.Exists("/proc/ppc64")) + if (Directory.Exists("/proc/ppc64")) { Assert.Ignore(); } -- cgit v1.1