From 76454e023e661ee8f47219b532b912baebefadb1 Mon Sep 17 00:00:00 2001 From: Edsko de Vries Date: Tue, 10 Mar 2015 15:27:18 +0000 Subject: [PATCH] Don't set stack space too low in tests 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. --- TestSuite/TestSuite/Tests/Issues.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TestSuite/TestSuite/Tests/Issues.hs b/TestSuite/TestSuite/Tests/Issues.hs index cd88749..72c19e3 100644 --- a/TestSuite/TestSuite/Tests/Issues.hs +++ b/TestSuite/TestSuite/Tests/Issues.hs @@ -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