[PATCH v2:libXt] Add test framework similar to xserver and use it to test XtAsprintf

Julien Cristau jcristau at debian.org
Thu Mar 10 01:32:37 PST 2011


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?

Cheers,
Julien


More information about the xorg-devel mailing list