Skip to content

Commit 901854e

Browse files
authored
Disable two tests in ExprTests in DEBUG, non-NetFramework only - they fail due to StackOverflow exception on NetCore+DEBUG configuration.. (#14637)
* Disable two failing ExprTests in DEBUG mode * Do not ignore the tests in DEBUG+NETFRAMEWORK configuration.
1 parent 7884d62 commit 901854e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/service/ExprTests.fs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,13 @@ let test{0}ToStringOperator (e1:{1}) = string e1
722722
723723
"""
724724

725+
let ignoreTestIfStackOverflowExpected () =
726+
#if !NETFRAMEWORK && DEBUG
727+
Assert.Ignore("Test is known to fail in DEBUG when not using NetFramework. Use RELEASE configuration or NetFramework to run it.")
728+
#else
729+
()
730+
#endif
731+
725732
/// This test is run in unison with its optimized counterpart below
726733
[<Test>]
727734
let ``Test Unoptimized Declarations Project1`` () =
@@ -3191,6 +3198,7 @@ let BigSequenceExpression(outFileOpt,docFileOpt,baseAddressOpt) =
31913198

31923199
[<Test>]
31933200
let ``Test expressions of declarations stress big expressions`` () =
3201+
ignoreTestIfStackOverflowExpected ()
31943202
let cleanup, options = ProjectStressBigExpressions.createOptions()
31953203
use _holder = cleanup
31963204
let exprChecker = FSharpChecker.Create(keepAssemblyContents=true)
@@ -3207,6 +3215,7 @@ let ``Test expressions of declarations stress big expressions`` () =
32073215

32083216
[<Test>]
32093217
let ``Test expressions of optimized declarations stress big expressions`` () =
3218+
ignoreTestIfStackOverflowExpected ()
32103219
let cleanup, options = ProjectStressBigExpressions.createOptions()
32113220
use _holder = cleanup
32123221
let exprChecker = FSharpChecker.Create(keepAssemblyContents=true)

0 commit comments

Comments
 (0)