* fixed issue in do_plain_tests() function, where "return" was
  used in child instead of "exit(3)" which caused that child executed
  code from parent

Signed-off-by: Matus Marhefka <mmarh...@redhat.com>
---
 testcases/kernel/containers/libclone/libclone.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/containers/libclone/libclone.c 
b/testcases/kernel/containers/libclone/libclone.c
index ebaac43..239674f 100644
--- a/testcases/kernel/containers/libclone/libclone.c
+++ b/testcases/kernel/containers/libclone/libclone.c
@@ -97,7 +97,7 @@ int do_plain_tests(int (*fn1) (void *arg), void *arg1,
                return -1;
        }
        if (pid == 0)
-               return fn1(arg1);
+               exit(fn1(arg1));
        if (fn2)
                ret = fn2(arg2);
        return ret;
-- 
1.8.3.1


------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to