Signed-off-by: Yuan Sun <sunyu...@huawei.com>
---
 testcases/kernel/containers/libclone/libclone.c | 2 +-
 testcases/kernel/containers/libclone/libclone.h | 6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/testcases/kernel/containers/libclone/libclone.c 
b/testcases/kernel/containers/libclone/libclone.c
index 239674f..fdd9ff8 100644
--- a/testcases/kernel/containers/libclone/libclone.c
+++ b/testcases/kernel/containers/libclone/libclone.c
@@ -121,7 +121,7 @@ int do_clone_unshare_test(int use_clone, unsigned long 
clone_flags,
 }
 
 /*
- * Run fn1 in a unshared environmnent, and fn2 in the original context
+ * Run fn1 in a unshared environment, and fn2 in the original context
  */
 int do_clone_unshare_tests(int use_clone, unsigned long clone_flags,
                           int (*fn1) (void *arg), void *arg1,
diff --git a/testcases/kernel/containers/libclone/libclone.h 
b/testcases/kernel/containers/libclone/libclone.h
index 3a38bc9..60e9e54 100644
--- a/testcases/kernel/containers/libclone/libclone.h
+++ b/testcases/kernel/containers/libclone/libclone.h
@@ -75,8 +75,12 @@
 #define CLONE_NEWNET           0x40000000
 #endif
 
+#ifndef CLONE_NEWNS
+#define CLONE_NEWNS            0x00020000
+#endif
+
 /*
- * Run fn1 in a unshared environmnent, and fn2 in the original context
+ * Run fn1 in a unshared environment, and fn2 in the original context
  * Fn2 may be NULL.
  */
 
-- 
1.9.1


------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to