summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-04-03 20:59:33 +0000
committerIan Lynagh <igloo@earth.li>2009-04-03 20:59:33 +0000
commitd5999e77cd975e26bad1c7fbeed90146ffaa40e4 (patch)
treecf004f12b25c29d2e4fd07c2c72f5ffc7d200867 /testsuite
parent2961830b3a321309e9de0c3d9b35e912eba2b632 (diff)
downloadhaskell-d5999e77cd975e26bad1c7fbeed90146ffaa40e4.tar.gz
Expand the space_leak expected results to work on more platforms
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/tests/ghc-regress/space_leaks/all.T27
1 files changed, 20 insertions, 7 deletions
diff --git a/testsuite/tests/ghc-regress/space_leaks/all.T b/testsuite/tests/ghc-regress/space_leaks/all.T
index 0ba1c95252..6da1c8cf37 100644
--- a/testsuite/tests/ghc-regress/space_leaks/all.T
+++ b/testsuite/tests/ghc-regress/space_leaks/all.T
@@ -1,12 +1,25 @@
test('space_leak_001',
- # Before trac #2747 was fixed this was 565, after it was 3
- [stats_num_field('peak_megabytes_allocated', 3, 3),
- stats_num_field('max_bytes_used', 430000,
+ # Before trac #2747 was fixed this was 565.
+ # Now it's: 3 (amd64/Linux)
+ # 4 (x86/OS X)
+ # 5 (x86/Linux)
+ [stats_num_field('peak_megabytes_allocated', 3, 5),
+ stats_num_field('max_bytes_used', 410000,
450000),
- # expected value: 440224
- stats_num_field('bytes allocated', 9340000000,
- 9350000000)],
- # expected value: 9343740368
+ # expected value: 440224 (amd64/Linux)
+ # 417016 (x86/OS X)
+ # 415672 (x86/Windows)
+ if_platform('i386-unknown-mingw32',
+ stats_num_field('bytes allocated', 730000000,
+ 750000000)),
+ # expected value: 739138140 (x86/Windows)
+ if_not_platform('i386-unknown-mingw32',
+ stats_num_field('bytes allocated', 9320000000,
+ 9350000000))
+ # expected value: 9343740368 (amd64/Linux)
+ # 9331570416 (x86/Linux)
+ # 9329073952 (x86/OS X)
+ ],
compile_and_run,
[''])