On the use of abort() in the testsuite

IainS developer@sandoe-acoustics.co.uk
Fri Apr 16 20:21:00 GMT 2010


On 14 Apr 2010, at 21:42, Ian Lance Taylor wrote:

> IainS <developer@sandoe-acoustics.co.uk> writes:
>
>> So... I wonder what does abort() offer to the testsuite?
>>
>> that, for example,   _exit(-(__LINE__)) ;
>>
>> doesn't?
>
> The testsuite can be run on embedded systems over serial ports, where
> is sometimes limited communication available.

ah, indeed .. I remember such when 8-bits/500kHz bus was state-of-the- 
art ;)

One wonders if things are quite so grim these days though.

> Using two functions is flexible in a different way: it means that you
> can compile the testsuite with -Dabort=my_favorite_abort and link
> against your own library.  So do that.  You can do this with magic in
> site.exp, but don't ask me what that magic is because I no longer
> remember.

I'll have to figure that out and report back.

Thanks for the info,
Iain



More information about the Gcc mailing list