Re: [commit: testsuite] master: The asm tests pass on Linux, but not OS X (89e571e)

Simon Marlow <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
On 13/10/12 11:26, Ian Lynagh wrote:
> Repository : ssh://darcs.haskell.org//srv/darcs/testsuite
>
> On branch  : master
>
> http://hackage.haskell.org/trac/ghc/changeset/89e571e5d2cd08c1df050b115fa609b4928a14cb
>
>> ---------------------------------------------------------------
>
> commit 89e571e5d2cd08c1df050b115fa609b4928a14cb
> Author: Ian Lynagh <[email protected]>
> Date:   Sat Oct 13 19:16:17 2012 +0100
>
>      The asm tests pass on Linux, but not OS X

Interesting... what goes wrong?  I hoped they would work on OS X too.

Cheers,
	Simon


>> ---------------------------------------------------------------
>
>   driver/testlib.py                  |    2 +-
>   tests/codeGen/should_gen_asm/all.T |    9 ++++++---
>   2 files changed, 7 insertions(+), 4 deletions(-)
>
> diff --git a/driver/testlib.py b/driver/testlib.py
> index c9dcc17..70ed040 100644
> --- a/driver/testlib.py
> +++ b/driver/testlib.py
> @@ -306,7 +306,7 @@ def if_platform( plat, f ):
>       else:
>           return normal
>
> -def if_not_platform( plat, f ):
> +def unless_platform( plat, f ):
>       if config.platform != plat:
>           return f
>       else:
> diff --git a/tests/codeGen/should_gen_asm/all.T b/tests/codeGen/should_gen_asm/all.T
> index c262255..a24ae31 100644
> --- a/tests/codeGen/should_gen_asm/all.T
> +++ b/tests/codeGen/should_gen_asm/all.T
> @@ -1,3 +1,6 @@
> -test('memcpy', unless_arch('x86_64',skip), compile_cmp_asm, [''])
> -test('memcpy-unroll', unless_arch('x86_64',skip), compile_cmp_asm, [''])
> -test('memcpy-unroll-conprop', unless_arch('x86_64',skip), compile_cmp_asm, [''])
> +test('memcpy',
> +     unless_platform('x86_64-unknown-linux',skip), compile_cmp_asm, [''])
> +test('memcpy-unroll',
> +     unless_platform('x86_64-unknown-linux',skip), compile_cmp_asm, [''])
> +test('memcpy-unroll-conprop',
> +     unless_platform('x86_64-unknown-linux',skip), compile_cmp_asm, [''])
>
>
>
> _______________________________________________
> Cvs-ghc mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/cvs-ghc
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.