From: Subrata <sub...@us...> - 2008-09-30 09:03:39
|
Update of /cvsroot/ltp/ltp/testcases/kernel/ipc/ipc_stress In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv688/ltp/testcases/kernel/ipc/ipc_stress Modified Files: run_semaphore_test_01.sh Log Message: The following patch is for script testcases/kernel/ipc/ipc_stress/run_semaphore_test_01.sh. It fixes a test error (line 72) and a bash specific test extension. (lines 72 and 102) that fail to run under Ubuntu (and probably Debian) as /bin/sh points to dash instead of bash (as in Redhat/Fedora). This script would also benefit of a reformatting as it lacks indentation but I wanted to keep the patch simple and I am not familiar with script format style of LTP. Signed-Off-by: Elder Costa <ev...@di...>. Index: run_semaphore_test_01.sh =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/ipc/ipc_stress/run_semaphore_test_01.sh,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** run_semaphore_test_01.sh 5 Sep 2008 08:43:26 -0000 1.3 --- run_semaphore_test_01.sh 30 Sep 2008 09:02:52 -0000 1.4 *************** *** 73,77 **** cleanup() { ! if [[ -nz $SEM_IPCS ]];then ipcrm -s $SEM_IPCS # remove the semaphore. fi --- 73,77 ---- cleanup() { ! if [ -n "$SEM_IPCS" ];then ipcrm -s $SEM_IPCS # remove the semaphore. fi *************** *** 103,107 **** for SEM_IPCS in $SEMS do ! if [[ $SEM_IPCS -eq $SEM_ID ]];then tst_resm TPASS "semaphore ID comparing passed." return $RC --- 103,107 ---- for SEM_IPCS in $SEMS do ! if [ $SEM_IPCS -eq $SEM_ID ] ;then tst_resm TPASS "semaphore ID comparing passed." return $RC |