[commit: testsuite] master: More 32bit perf bound fixes (2ee201b)

Ian Lynagh igloo at earth.li
Sun Feb 10 18:59:25 CET 2013


Repository : ssh://darcs.haskell.org//srv/darcs/testsuite

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/2ee201b1492c28ca884e05500bd3951d14499ba6

>---------------------------------------------------------------

commit 2ee201b1492c28ca884e05500bd3951d14499ba6
Author: Ian Lynagh <ian at well-typed.com>
Date:   Sun Feb 10 17:45:59 2013 +0000

    More 32bit perf bound fixes

>---------------------------------------------------------------

 tests/perf/space_leaks/all.T |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/tests/perf/space_leaks/all.T b/tests/perf/space_leaks/all.T
index f3260c2..a1fd641 100644
--- a/tests/perf/space_leaks/all.T
+++ b/tests/perf/space_leaks/all.T
@@ -5,11 +5,15 @@ test('space_leak_001',
      #           4 (x86/OS X)
      #           5 (x86/Linux)
      [stats_num_field('peak_megabytes_allocated', (4, 1)),
-      stats_num_field('max_bytes_used', (440000, 10)),
-                       # expected value: 440224 (amd64/Linux)
-                       #                 417016 (x86/OS X)
-                       #                 415672 (x86/Windows)
-                       #                 481456 (unreg amd64/Linux)
+      stats_num_field('max_bytes_used',
+          [(wordsize(64), 440000, 10),
+                        # 440224 (amd64/Linux)
+                        # 417016 (x86/OS X)
+                        # 415672 (x86/Windows)
+                        # 481456 (unreg amd64/Linux)
+           (wordsize(32), 405650, 10)]),
+             # 2013-02-10 372072 (x86/OSX)
+             # 2013-02-10 439228 (x86/OSX)
       stats_num_field('bytes allocated', (9079316016, 1)),
                         # expected value: 9079316016 (amd64/Linux)
                         #                 9331570416 (x86/Linux)
@@ -23,7 +27,7 @@ test('space_leak_001',
 test('T4334',
      # Test for a space leak in Data.List.lines (fixed with #4334)
      [extra_run_opts('1000000 2 t'),
-      stats_num_field('peak_megabytes_allocated', (2, 0)),
+      stats_num_field('peak_megabytes_allocated', (2, 1)),
       # prof ways don't work well with +RTS -V0
       omit_ways(['profasm','profthreaded'])
       ],





More information about the ghc-commits mailing list