cleanup() is reserved for the main test process. In children, call exit()
instead.

Signed-off-by: Louis Rilling <[EMAIL PROTECTED]>
---
 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) {

-- 
Dr Louis Rilling                        Kerlabs
Skype: louis.rilling                    Batiment Germanium
Phone: (+33|0) 6 80 89 08 23            80 avenue des Buttes de Coesmes
http://www.kerlabs.com/                 35700 Rennes


-------------------------------------------------------------------------
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