[PATCH v2:libXt] Add test framework similar to xserver and use it to test XtAsprintf
Gaetan Nadon
memsize at videotron.ca
Thu Mar 10 06:19:18 PST 2011
On Thu, 2011-03-10 at 10:47 +0100, Julien Cristau wrote:
> > On Wed, Mar 9, 2011 at 20:19:16 -0800, Alan Coopersmith wrote:
> >
> > > +# Memory checking support
> > > +case $host_os in
> > > + solaris*)
> > > + AC_CHECK_LIB([umem], [umem_alloc],
> > > + [MALLOC_DEBUG_ENV='LD_PRELOAD=libumem.so
> UMEM_DEBUG=default'])
> > > + ;;
> > > + *bsd*|darwin*)
> > > + MALLOC_DEBUG_ENV='MallocPreScribble=1 MallocScribble=1'
> > > + ;;
> > > + *) # Assume glibc
> > > + MALLOC_DEBUG_ENV='MALLOC_PERTURB_=255'
> > > + ;;
> >
> > I think this won't work for gnu/kfreebsd. Maybe use *-gnu for the
> glibc
> > case, and put it before the *bsd* one?
> >
> Make that *-gnu* so it can handle linux-gnueabi (used on arm)...
On my list, I also have:
*dragonfly*
kfreebsd*-gnu
gnu* for GNU/Hurd
In the XORG_GNU_LIB macro under review, there is an AM_CONDITIONAL named
HAVE_GLIB
which can be used in the makefile to set appropriate options. Checking
by feature is
preferable to checking by host as glib may or may not be present and can
be turned off
by the configure option.
I have not had a chance to look at the debug memory env yet to see what
is reusable.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110310/70460ad9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110310/70460ad9/attachment.pgp>
More information about the xorg-devel
mailing list