On Mon, 2008-06-02 at 17:11 +0200, Louis Rilling wrote:
> plain text document attachment
> (execve05-do-not-call-cleanup-in-child.patch)
> cleanup() is reserved for the main test process. In children, call exit()
> instead.
> 
> Signed-off-by: Louis Rilling <[EMAIL PROTECTED]>
Applied.

Regards--
Subrata
> ---
>  testcases/kernel/syscalls/execve/execve05.c |   12 ++++++++----
>  1 file changed, 8 insertions(+), 4 deletions(-)
> 
> Index: b/testcases/kernel/syscalls/execve/execve05.c
> ===================================================================
> --- a/testcases/kernel/syscalls/execve/execve05.c     2008-06-02 
> 16:34:22.000000000 +0200
> +++ b/testcases/kernel/syscalls/execve/execve05.c     2008-06-02 
> 16:37:27.000000000 +0200
> @@ -250,11 +250,15 @@ do_child_1()
>               exit(1);        
>       }
> 
> -     if (sync_pipe_notify(start_sync_pipes) == -1)
> -             tst_brkm(TBROK, cleanup, "sync_pipe_notify failed");
> +     if (sync_pipe_notify(start_sync_pipes) == -1) {
> +             tst_brkm(TBROK, NULL, "sync_pipe_notify failed");
> +             exit(1);
> +     }
> 
> -     if (sync_pipe_close(start_sync_pipes) == -1)
> -             tst_brkm(TBROK, cleanup, "sync_pipe_close failed");
> +     if (sync_pipe_close(start_sync_pipes) == -1) {
> +             tst_brkm(TBROK, NULL, "sync_pipe_close failed");
> +             exit(1);
> +     }
> 
>       /* let other child execve same file */
>       if (sync_pipe_wait(end_sync_pipes) == -1) {
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to