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 <[email protected]> configure.ac | 1 + m4/ltp-unshare.m4 | 2 ++ 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/configure.ac b/configure.ac index aa7bef4..ca8adc5 100644 --- a/configure.ac +++ b/configure.ac @@ -18,6 +18,7 @@ sys/inotify.h \ 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 diff --git a/m4/ltp-unshare.m4 b/m4/ltp-unshare.m4 new file mode 100644 index 0000000..6476141 --- /dev/null +++ b/m4/ltp-unshare.m4 @@ -0,0 +1,2 @@ +AC_DEFUN([LTP_CHECK_SYSCALL_UNSHARE], +AC_CHECK_FUNCS_ONCE(unshare)) ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
