[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: Madan U Sreenivasan <madan_at_collab.net>
Date: 2005-02-18 14:27:19 CET

On Thu, 2005-02-17 at 17:33, Branko Čibej wrote:
> 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
mmmmm... I realized late .... being new to python.... like you said, we
need some way of detecting segfaults.... neways....thanks....

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Feb 18 14:25:06 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.