Madan U Sreenivasan wrote:
> Branko Čibej wrote:
>
>> Brian W. Fitzpatrick wrote:
>>
>>> If a segfault is the error you're fixing, then I'd say checking for
>>> the segfault is an adequate test.
>>
>> Indeed, but we don't have a portable way of detecting segfaults in
>> the test framework. I wish...
>>
>> -- Brane
>
>
> I'm looking at using
> try
> -
> -
> -
> except OSError
> How does that sound Brane?
I'm pretty certain that won't work on any platform. A segfault in a
child process won't trigger an exception in the parent, even if you're
reading from the child's stdout/stderr pipes. You'd have to actually
wait for the child to terminate to get the exit status (something Python
on Windows doesn't support without using the Windows-specific modules,
of course).
-- Brane
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Feb 17 13:05:23 2005