Commit ce2416bc authored by Erik de Castro Lopo's avatar Erik de Castro Lopo
Browse files

Fix rts/T9579 tests on OS X

Sed on OS X does not understand 's/[0-9]\+ bytes/NUM bytes/g' but
sed on Linux and OS X do understand 's/[0-9]* bytes/NUM bytes/g'.

Test Plan: Run all rts/T9579 tests on Linux and Mac

Reviewers: thomie, austin, bgamari

Differential Revision: https://phabricator.haskell.org/D1394
parent 776d55c8
......@@ -11,7 +11,7 @@ def T9579_run_test(binName, expExitCode):
testCommandTemplate = """
$MAKE -s --no-print-directory T9579_{binName} \
&& ( ( ./T9579_{binName} 2>&1; echo $?) \
| sed -e 's/[0-9]\+ bytes/NUM bytes/g' ) \
| sed -e 's/[0-9]* bytes/NUM bytes/g' ) \
"""
test(fmt('T9579_{binName}'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment