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

Alan Coopersmith alan.coopersmith at oracle.com
Thu Mar 10 14:22:55 PST 2011


On 03/10/11 04:27 AM, Cyril Brulebois wrote:
> Alan Coopersmith <alan.coopersmith at oracle.com> (09/03/2011):
>> Only two simple test cases to start with:
>> v2: Thanks to suggestions from many on #xorg-devel IRC, set malloc debugging
>>     environment variables for common platforms (only tested on Solaris though)
> 
> Hitting 100/0 OK/NOK with it. Once lowered to 10, hitting 0/100. :)
> 
> See the code for explanations:
>   https://bugzilla.redhat.com/show_bug.cgi?id=615050#c3

Oh, that's, um, confusing.   I didn't realize there was bit inversion going on.
Should we use something like 0xa5 then to have non-zero values in both the
direct and inverted usages?

>>> +    g_assert(aslen = r2);
> 
> :D

Oops, amended.


-- 
	-Alan Coopersmith-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System



More information about the xorg-devel mailing list