Hi,

The test_fs_bind testscript hangs indefinitely when run on a machine where busybox applets are used.

The test hangs while trying to restore the mounts after a test run.


This happens because the "xargs" applet from busybox doesn't understand the --max-args=1 option. Thus, the mounts from the test are not removed and this goes on in a loop, indefinitely.

This could be avoided by using "-n" option which is supported by both the implementations of xargs.


Attached the patch here.

Thanks

Suzuki
Signed-off-by: Suzuki K P <[email protected]>

Index: ltp/testscripts/test_fs_bind.sh
===================================================================
--- ltp.orig/testscripts/test_fs_bind.sh        2009-12-22 03:28:25.000000000 
+0000
+++ ltp/testscripts/test_fs_bind.sh     2010-04-26 05:50:41.000000000 +0000
@@ -238,7 +238,7 @@
        # new mounts around and will never remove mounts outside the test
        # directory
        ( while grep_proc_mounts ; do
-               grep_proc_mounts | awk '{print $2}' | xargs -r --max-args=1 
umount -l
+               grep_proc_mounts | awk '{print $2}' | xargs -r -n 1 umount -l
        done ) >& /dev/null
        
        # mount list and exit with 0
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to