[commit: ghc] master: Fix fragile T9579 tests (4b8b4ce)

git at git.haskell.org git at git.haskell.org
Tue May 12 22:44:31 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/4b8b4ce12a1b5f682071a27bc313649fa50e0e91/ghc

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

commit 4b8b4ce12a1b5f682071a27bc313649fa50e0e91
Author: Javran Cheng <Javran.c at gmail.com>
Date:   Wed May 13 07:54:57 2015 +1000

    Fix fragile T9579 tests
    
    Fix fragile tests according to comment 13 of #9579 (by @bherzog)
    
    Done by capturing stderr and replace `xx bytes` with `NUM bytes`
    (literal).
    
    Some numbers like `(1 MB)` would still remain, but I think
    it's safe to assume the actual difference in bytes (on different
    architectures) is too small to have an effect on the rounded megabyte
    value.
    
    Test Plan: validate
    
    Reviewers: erikd, austin
    
    Reviewed By: erikd, austin
    
    Subscribers: erikd, bgamari, thomie, bherzog
    
    Differential Revision: https://phabricator.haskell.org/D882
    
    GHC Trac Issues: #9579


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

4b8b4ce12a1b5f682071a27bc313649fa50e0e91
 ...rtsall.stderr => T9579_outofheap_rtsall.stdout} |  3 +-
 ...> T9579_outofheap_rtsall_no_suggestions.stdout} |  3 +-
 ...snone.stderr => T9579_outofheap_rtsnone.stdout} |  3 +-
 ...ssome.stderr => T9579_outofheap_rtssome.stdout} |  3 +-
 .../rts/T9579/T9579_stackoverflow_rtsall.stderr    |  2 -
 .../rts/T9579/T9579_stackoverflow_rtsall.stdout    |  3 +
 ...579_stackoverflow_rtsall_no_suggestions.stdout} |  3 +-
 ...e.stderr => T9579_stackoverflow_rtsnone.stdout} |  3 +-
 ...e.stderr => T9579_stackoverflow_rtssome.stdout} |  3 +-
 testsuite/tests/rts/T9579/all.T                    | 95 +++++++---------------
 10 files changed, 48 insertions(+), 73 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 4b8b4ce12a1b5f682071a27bc313649fa50e0e91


More information about the ghc-commits mailing list