Skip to content

Commit

Permalink
Don't set stack space too low in tests
Browse files Browse the repository at this point in the history
Unfortunately, we cannot currently set the stack space for snippets independent
from the stack space of the server (#266), and if we set it too low the server
itself will run out of stack space.
  • Loading branch information
edsko committed Mar 10, 2015
1 parent 146b997 commit 76454e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion TestSuite/TestSuite/Tests/Issues.hs
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,9 @@ test191 env = withAvailableSession env $ \session -> do
_ -> assertFailure $ "Unexpected run result " ++ show result

-- But after we change the stack size, test2 too will crash:
updateSessionD session (updateRtsOpts ["-K128K"]) 1
-- (Note that we cannot set this value _too_ low otherwise the main server
-- itself, rather than the snippet, will crash. See Issue #266.)
updateSessionD session (updateRtsOpts ["-K256K"]) 1
do runActions <- runStmt session "Main" "test2"
(_output, result) <- runWaitAll runActions
case result of
Expand Down

0 comments on commit 76454e0

Please sign in to comment.