[PATCH 4/6] Don't require ld -wrap for tests that don't need it

Peter Hutterer peter.hutterer at who-t.net
Wed Nov 2 14:36:58 PDT 2011


On Wed, Nov 02, 2011 at 01:56:07PM -0700, Alan Coopersmith wrote:
> On 10/30/11 15:19, Peter Hutterer wrote:
> >On Sat, Oct 29, 2011 at 12:36:53AM -0700, Jeremy Huddleston wrote:
> >>Reviewed-by: Jeremy Huddleston<jeremyhu at apple.com>
> >>
> >>Why does xi2 "need" -wrap?  Can we do these tests in a more portable way
> >>with some clever macros?
> >
> >It'd be easier to just disable the tests on the platforms that don't have
> >-wrap. The last thing we need is making tests harder to write.
> 
> Which is what we currently do, this just allows the others to be available
> on other platforms (though it needs a macros patch to be fully effective,
> I'll send out a revised version soon).
> 
> >all but one test in xi2 needs -wrap, but I don't see any other check there.
> 
> test/xi2/Makefile.am is already wrapped in
> 
> if ENABLE_UNIT_TESTS
> if HAVE_LD_WRAP
> [...]
> endif
> endif

I clearly need to get my eyes checked.

Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net> for the patch

Cheers,
  Peter

 
> and I was leaving that one, which seemed sufficient (at least on Solaris,
> where it currently detects ld -wrap is not available, due to another issue,
> this allowed the tests in tests/*.c to run, and skipped tests/Xi/*.c).
 


More information about the xorg-devel mailing list