diff options
author | Ian Lynagh <igloo@earth.li> | 2009-04-03 20:59:33 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2009-04-03 20:59:33 +0000 |
commit | d5999e77cd975e26bad1c7fbeed90146ffaa40e4 (patch) | |
tree | cf004f12b25c29d2e4fd07c2c72f5ffc7d200867 /testsuite | |
parent | 2961830b3a321309e9de0c3d9b35e912eba2b632 (diff) | |
download | haskell-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.T | 27 |
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, ['']) |