lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [4/4] lucenenet git commit: Lucene.Net.Tests.Util.TestRamUsageEstimatorOnWildAnimals: Reworked test so it exists in .NET Standard but does not run
Date Fri, 22 Sep 2017 10:06:53 GMT
Lucene.Net.Tests.Util.TestRamUsageEstimatorOnWildAnimals: Reworked test so it exists in .NET
Standard but does not run


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/48540380
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/48540380
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/48540380

Branch: refs/heads/master
Commit: 4854038058d384703ed7219e9661764f1f23fff6
Parents: decca77
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Fri Sep 22 16:51:04 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Fri Sep 22 17:05:33 2017 +0700

----------------------------------------------------------------------
 .../Util/TestRamUsageEstimatorOnWildAnimals.cs                 | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/48540380/src/Lucene.Net.Tests/Util/TestRamUsageEstimatorOnWildAnimals.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/Util/TestRamUsageEstimatorOnWildAnimals.cs b/src/Lucene.Net.Tests/Util/TestRamUsageEstimatorOnWildAnimals.cs
index c34ca84..f86016e 100644
--- a/src/Lucene.Net.Tests/Util/TestRamUsageEstimatorOnWildAnimals.cs
+++ b/src/Lucene.Net.Tests/Util/TestRamUsageEstimatorOnWildAnimals.cs
@@ -25,15 +25,18 @@ namespace Lucene.Net.Util
     [TestFixture]
     public class TestRamUsageEstimatorOnWildAnimals : LuceneTestCase
     {
-#if !NETSTANDARD // StackOverflowException cannot be caught in .NET Core. This test does
not apply.
         public class ListElement
         {
             internal ListElement Next;
         }
 
+
         [Test]
         public virtual void TestOverflowMaxChainLength()
         {
+#if NETSTANDARD
+            AssumeTrue("StackOverflowException cannot be caught in .NET Core. This test does
not apply.", false);
+#endif
             int UPPERLIMIT = 100000;
             int lower = 0;
             int upper = UPPERLIMIT;
@@ -65,6 +68,5 @@ namespace Lucene.Net.Util
                 Assert.Fail("Max object chain length till stack overflow: " + lower);
             }
         }
-#endif
     }
 }
\ No newline at end of file


Mime
View raw message