Check unshare Function: This patch set fixes several problems for unshare tests. The first one is to add a build-time checking for unshare function. The second one is to fix unshare01 test,
* deal with no unshare implementation in both glibc and kernel.
* simplify logic.
* fix coding style.
The final one is to fix unshare02 test,
* deal with no unshare implementation in both glibc and kernel.
* fix an incorrect expected result and simplify logic.
* fix coding style.
Signed-off-by: CAI Qian <caiqian@cclom.cn>.
diff --git a/configure.ac b/configure.ac
index aa7bef4..ca8adc5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,6 +18,7 @@
 LTP_CHECK_SYSCALL_EVENTFD
 LTP_CHECK_SYSCALL_MODIFY_LDT
 LTP_CHECK_SYSCALL_SIGNALFD
+LTP_CHECK_SYSCALL_UNSHARE
 LTP_CHECK_SELINUX
 LTP_CHECK_CRYPTO
 LTP_CHECK_TASKSTATS