Quoting Subrata Modak ([EMAIL PROTECTED]): > Hi Rishikesh/Sergei, > > Any fix available for the same ?? ;-)
Please try the following patch... thanks, -serge diff -Nrup ltp/testcases/kernel/containers/Makefile ltp-patched/testcases/kernel/containers/Makefile --- ltp/testcases/kernel/containers/Makefile 2007-04-26 13:02:50.000000000 +0200 +++ ltp-patched/testcases/kernel/containers/Makefile 2007-06-26 01:44:15.000000000 +0200 @@ -1,14 +1,18 @@ SUBDIRS = libclone utsname -all noltp noltp_check: - @set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done +all noltp noltp_check: check_for_unshare + @set -e; if './check_for_unshare' > /dev/null 2>&1; then \ + for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done \ + else echo "system does not support unshare"; true; fi -install: - @set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i install ; done - chmod ugo+x container_test.sh - ln -f container_test.sh ../../bin/container_test.sh +install: check_for_unshare + @set -e; ln -f check_for_unshare ../../bin/check_for_unshare; \ + if './check_for_unshare' > /dev/null 2>&1; then \ + for i in $(SUBDIRS); do $(MAKE) -C $$i install ; done; \ + chmod ugo+x container_test.sh; \ + ln -f container_test.sh ../../bin/container_test.sh; \ + else echo "system does not support unshare"; true; fi clean: @set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i clean ; done - - + rm -f check_for_unshare diff -Nrup ltp/testcases/kernel/containers/check_for_unshare.c ltp-patched/testcases/kernel/containers/check_for_unshare.c --- ltp/testcases/kernel/containers/check_for_unshare.c 1970-01-01 01:00:00.000000000 +0100 +++ ltp-patched/testcases/kernel/containers/check_for_unshare.c 2007-06-25 20:28:58.000000000 +0200 @@ -0,0 +1,21 @@ +#ifndef SYS_unshare +#ifdef __NR_unshare +int do_check(void) { return 0; } +#elif __i386__ +int do_check(void) { return 0; } +#elif __ia64__ +int do_check(void) { return 0; } +#elif __x86_64__ +int do_check(void) { return 0; } +#elif __s390x__ || __s390__ +int do_check(void) { return 0; } +#elif __powerpc__ +int do_check(void) { return 0; } +#else +int do_check(void) { return 1; } +#endif +#endif + +int main() { + return do_check(); +} diff -Nrup ltp/testcases/kernel/containers/container_test.sh ltp-patched/testcases/kernel/containers/container_test.sh --- ltp/testcases/kernel/containers/container_test.sh 2007-04-26 13:02:50.000000000 +0200 +++ ltp-patched/testcases/kernel/containers/container_test.sh 2007-06-25 20:27:17.000000000 +0200 @@ -10,6 +10,12 @@ # any later version. #check_utsns_enabled +check_for_unshare +if [ $? -eq 1 ]; then + echo "Unshare not supported. Not running container tests" + exit 0 +fi + #if [ $? -eq 0 ]; then echo "Running utsns tests." runutstest.sh ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list