Fix fragile T9579 tests
authorJavran Cheng <Javran.c@gmail.com>
Tue, 12 May 2015 21:54:57 +0000 (07:54 +1000)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Tue, 12 May 2015 22:44:56 +0000 (08:44 +1000)
commit4b8b4ce12a1b5f682071a27bc313649fa50e0e91
tree3599ecfceec8298864d3817088fb6f2de4cf5959
parenta171cc133cc1111e91cf892fdbaa7ca476129b07
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
testsuite/tests/rts/T9579/T9579_outofheap_rtsall.stdout [moved from testsuite/tests/rts/T9579/T9579_outofheap_rtsall.stderr with 57% similarity]
testsuite/tests/rts/T9579/T9579_outofheap_rtsall_no_suggestions.stdout [moved from testsuite/tests/rts/T9579/T9579_outofheap_rtsall_no_suggestions.stderr with 82% similarity]
testsuite/tests/rts/T9579/T9579_outofheap_rtsnone.stdout [moved from testsuite/tests/rts/T9579/T9579_outofheap_rtsnone.stderr with 62% similarity]
testsuite/tests/rts/T9579/T9579_outofheap_rtssome.stdout [moved from testsuite/tests/rts/T9579/T9579_outofheap_rtssome.stderr with 62% similarity]
testsuite/tests/rts/T9579/T9579_stackoverflow_rtsall.stderr [deleted file]
testsuite/tests/rts/T9579/T9579_stackoverflow_rtsall.stdout [new file with mode: 0644]
testsuite/tests/rts/T9579/T9579_stackoverflow_rtsall_no_suggestions.stdout [moved from testsuite/tests/rts/T9579/T9579_stackoverflow_rtsall_no_suggestions.stderr with 70% similarity]
testsuite/tests/rts/T9579/T9579_stackoverflow_rtsnone.stdout [moved from testsuite/tests/rts/T9579/T9579_stackoverflow_rtsnone.stderr with 92% similarity]
testsuite/tests/rts/T9579/T9579_stackoverflow_rtssome.stdout [moved from testsuite/tests/rts/T9579/T9579_stackoverflow_rtssome.stderr with 92% similarity]
testsuite/tests/rts/T9579/all.T