From fefcb8432f37132ceb30c9e1c1733830f1704d38 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Fri, 24 Apr 2009 12:06:24 +0000 Subject: change power linux detection method, the previous method only worked with interactive logins, not under panda. --- OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs | 4 ++-- OpenSim/Data/SQLite/Tests/SQLiteEstateTest.cs | 4 ++-- OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs | 4 ++-- OpenSim/Data/SQLite/Tests/SQLiteRegionTest.cs | 4 ++-- OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs b/OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs index 7221811..b99b248 100644 --- a/OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs +++ b/OpenSim/Data/SQLite/Tests/SQLiteAssetTest.cs @@ -41,9 +41,9 @@ namespace OpenSim.Data.SQLite.Tests [TestFixtureSetUp] public void Init() { - if (System.Environment.GetEnvironmentVariable("CPU") == "ppc64") + // SQLite doesn't work on power linux + if (File.Exists("/proc/ppc64")) { - System.Console.WriteLine(System.Environment.GetEnvironmentVariable("CPU")); Assert.Ignore(); } diff --git a/OpenSim/Data/SQLite/Tests/SQLiteEstateTest.cs b/OpenSim/Data/SQLite/Tests/SQLiteEstateTest.cs index 9ed9897..fd157c6 100644 --- a/OpenSim/Data/SQLite/Tests/SQLiteEstateTest.cs +++ b/OpenSim/Data/SQLite/Tests/SQLiteEstateTest.cs @@ -41,9 +41,9 @@ namespace OpenSim.Data.SQLite.Tests [TestFixtureSetUp] public void Init() { - if (System.Environment.GetEnvironmentVariable("CPU") == "ppc64") + // SQLite doesn't work on power linux + if (File.Exists("/proc/ppc64")) { - System.Console.WriteLine(System.Environment.GetEnvironmentVariable("CPU")); Assert.Ignore(); } diff --git a/OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs b/OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs index a5b2e06..c70be6d 100644 --- a/OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs +++ b/OpenSim/Data/SQLite/Tests/SQLiteInventoryTest.cs @@ -41,9 +41,9 @@ namespace OpenSim.Data.SQLite.Tests [TestFixtureSetUp] public void Init() { - if (System.Environment.GetEnvironmentVariable("CPU") == "ppc64") + // SQLite doesn't work on power linux + if (File.Exists("/proc/ppc64")) { - System.Console.WriteLine(System.Environment.GetEnvironmentVariable("CPU")); Assert.Ignore(); } diff --git a/OpenSim/Data/SQLite/Tests/SQLiteRegionTest.cs b/OpenSim/Data/SQLite/Tests/SQLiteRegionTest.cs index be17a38..da8f74f 100644 --- a/OpenSim/Data/SQLite/Tests/SQLiteRegionTest.cs +++ b/OpenSim/Data/SQLite/Tests/SQLiteRegionTest.cs @@ -41,9 +41,9 @@ namespace OpenSim.Data.SQLite.Tests [TestFixtureSetUp] public void Init() { - if (System.Environment.GetEnvironmentVariable("CPU") == "ppc64") + // SQLite doesn't work on power linux + if (File.Exists("/proc/ppc64")) { - System.Console.WriteLine(System.Environment.GetEnvironmentVariable("CPU")); Assert.Ignore(); } diff --git a/OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs b/OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs index 1c0ba71..06465e8 100644 --- a/OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs +++ b/OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs @@ -41,9 +41,9 @@ namespace OpenSim.Data.SQLite.Tests [TestFixtureSetUp] public void Init() { - if (System.Environment.GetEnvironmentVariable("CPU") == "ppc64") + // SQLite doesn't work on power linux + if (File.Exists("/proc/ppc64")) { - System.Console.WriteLine(System.Environment.GetEnvironmentVariable("CPU")); Assert.Ignore(); } -- cgit v1.1