[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: query on writing test scripts

From: Branko Čibej <brane_at_xbc.nu>
Date: 2005-02-17 13:03:36 CET

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

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.