diff options
author | Douglas Wilson <douglas.wilson@gmail.com> | 2018-02-18 11:10:21 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-02-18 11:57:45 -0500 |
commit | d924c17dfc8d277a7460fa57217a9ab82f78ee4e (patch) | |
tree | b72811df7792c0d4391922efb8a3351bbaa5bb33 | |
parent | 4e513bf758c32804fc71b98215f96e8481697a36 (diff) | |
download | haskell-d924c17dfc8d277a7460fa57217a9ab82f78ee4e.tar.gz |
testsuite: Add newline to test output
Reviewers: bgamari
Reviewed By: bgamari
Subscribers: rwbarton, thomie, carter
Differential Revision: https://phabricator.haskell.org/D4389
-rw-r--r-- | testsuite/tests/concurrent/should_run/setnumcapabilities001.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/tests/concurrent/should_run/setnumcapabilities001.hs b/testsuite/tests/concurrent/should_run/setnumcapabilities001.hs index 27685f0894..a18d75aeef 100644 --- a/testsuite/tests/concurrent/should_run/setnumcapabilities001.hs +++ b/testsuite/tests/concurrent/should_run/setnumcapabilities001.hs @@ -15,7 +15,7 @@ main = do forM_ (cycle ([n,n-1..1] ++ [2..n-1])) $ \m -> do setNumCapabilities m threadDelay t - printf "%d" (nqueens q) + printf "%d\n" (nqueens q) killThread t -- If we don't kill the child thread, it might be about to -- call setNumCapabilities() in C when the main thread exits, @@ -34,7 +34,7 @@ nqueens nq = length (pargen 0 []) pargen :: Int -> [Int] -> [[Int]] pargen n b | n >= threshold = iterate gen [b] !! (nq - n) - | otherwise = concat bs + | otherwise = concat bs where bs = map (pargen (n+1)) (gen [b]) `using` parList rdeepseq threshold = 3 |