diff options
author | Andreas Klebinger <klebinger.andreas@gmx.at> | 2022-04-10 14:53:16 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-04-22 02:14:10 -0400 |
commit | fcf22883774fab6e77058d981a3f840fa663e3ac (patch) | |
tree | 0a3ed87d7aeb343e9461093740d14a141abf8c75 /testsuite/tests/ghci/should_run/T16012.script | |
parent | 8f9b8282a294150810db272815f1a47287bf33b6 (diff) | |
download | haskell-fcf22883774fab6e77058d981a3f840fa663e3ac.tar.gz |
Include the way string in the file name for dump files.
This can be disabled by `-fno-dump-with-ways` if not desired.
Finally we will be able to look at both profiled and non-profiled dumps
when compiling with dump flags and we compile in both ways.
Diffstat (limited to 'testsuite/tests/ghci/should_run/T16012.script')
-rw-r--r-- | testsuite/tests/ghci/should_run/T16012.script | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/testsuite/tests/ghci/should_run/T16012.script b/testsuite/tests/ghci/should_run/T16012.script index 2394e9c0ec..fd36138910 100644 --- a/testsuite/tests/ghci/should_run/T16012.script +++ b/testsuite/tests/ghci/should_run/T16012.script @@ -1,6 +1,8 @@ -- We expect the allocation counter to be initialized to zero and to count down. -- As ghc expressions are executed in their own thread a call to getAllocationCounter -- should always return a reasonably low result. +-- The actual number is somewhat arbitrary. If this fails because the value is slightly over +-- the threshold below it's fine to increase the threshold! n <- System.Mem.getAllocationCounter -if (n < 0 && n >= -200000) then putStrLn "Allocation counter in expected range" else (putStrLn $ "Unexpected allocation counter result:" ++ show n) +if (n < 0 && n >= -222222) then putStrLn "Allocation counter in expected range" else (putStrLn $ "Unexpected allocation counter result:" ++ show n) |