[MERGE][bug #102019] strace hanging the test suite

Robert Collins robertc at robertcollins.net
Tue Jul 3 06:25:33 BST 2007


On Mon, 2007-07-02 at 13:22 +0200, Vincent Ladeuil wrote:
> Hi,
> 
> The attached patch was obtained from playing with sigstop-demo.py
> script in
> https://bugs.launchpad.net/ubuntu/+source/strace/+bug/103133.
> 
> This script has the nice property that it hangs at every run :)
> 
> Disabling the '-f' strace option make it run without hanging.
> 
> From strace man page :
> 
>        -f          Trace child processes as they are  created  by  cur‐
>                    rently  traced  processes as a result of the fork(2)
>                    system call.
> 
> This is not needed during the tests, so far, so I disabled the
> option for them.

I would prefer it if you had a new function.

e.g.
def strace_detailed(function, args, kwargs, follow_children=True):
    ...

and strace becomes
def strace(function, *args, **kwargs):
    return strace_detailed(function, args, kwargs)

and the tests that test executing strace can do
strace_detailed calls rather than strace calls.

-Rob  
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070703/f49f9687/attachment.pgp 


More information about the bazaar mailing list