Skip to content

Commit 2cb9ee0

Browse files
authored
Double the iterations in StackOverflowRepro - see if it fails MacOS (#18952)
1 parent e52305b commit 2cb9ee0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/FSharp.Compiler.ComponentTests/EmittedIL/TryCatch/StackOverflowRepro.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ let main (args:string[]) =
3131
with
3232
| ex ->
3333
printf "%s" (ex.GetType().ToString())
34-
0
34+
0

tests/FSharp.Compiler.ComponentTests/EmittedIL/TryCatch/TryCatch.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ module TryCatch =
6363
let fsharpCoreFile = typeof<voption<_>>.Assembly.Location
6464
File.Copy(fsharpCoreFile, Path.Combine(Path.GetDirectoryName(dllFile), Path.GetFileName(fsharpCoreFile)), true)
6565
let result = CompilerAssert.ExecuteAndReturnResult (dllFile, isFsx=false, deps = s.Dependencies, newProcess=true)
66+
printfn "%A" result
6667

67-
Assert.True(result.StdErr.Contains "stack overflow" || result.StdErr.Contains "StackOverflow")
68+
Assert.True(result.StdErr.Contains "stack overflow" || result.StdErr.Contains "StackOverflow", result.StdErr)
6869

6970
| _ -> failwith (sprintf "%A" compilationResult)
7071

0 commit comments

Comments
 (0)