tag 465007 patch
thanks

hi,

I attached a patch,

Cheers,

   Gonéri Le Bouder
diff -ru ltp-full-20060918.orig/ltpmenu ltp-full-20060918/ltpmenu
--- ltp-full-20060918.orig/ltpmenu	2008-04-09 16:37:40.000000000 +0200
+++ ltp-full-20060918/ltpmenu	2008-04-09 16:58:31.000000000 +0200
@@ -116,7 +116,7 @@
         0) \
             for cmd in cc make lex ;
             do \
-                which $cmd &>$TMPDIR/runltp.err.$$ ;
+                which $cmd >$TMPDIR/runltp.err.$$ 2>&1;
                 if [ $? -ne 0 ] ;
                     then \
                         display_info_msg "Compiling LTP testsuite" \
@@ -348,7 +348,7 @@
     else
       tst_choice=$(cat $TMPDIR/runltp.choice.$$)
     fi
-    if [[ $tst_choice == NULL ]];then
+    if [ ! $tst_choice ];then
       RC=1
     fi
     case $RC in 
@@ -357,13 +357,14 @@
             do \
                 cat $LTPROOT/runtest/$(echo $i | sed -e 's/"//g') \
                    >> $TMPDIR/runltp.test.list.$$ ;
-                if [[ $(echo $i | sed -e 's/"//g') == "tcp_cmds" || \
-		      $(echo $i | sed -e 's/"//g') == "tcp_cmds_noexpect" || \
-                      $(echo $i | sed -e 's/"//g') == "multicast" || \
-                      $(echo $i | sed -e 's/"//g') == "ipv6" || \
-                      $(echo $i | sed -e 's/"//g') == "ipv6_noexpect" || \
-                      $(echo $i | sed -e 's/"//g') == "nfs" || \
-                      $(echo $i | sed -e 's/"//g') == "multicast" ]] ;
+                i_clean=$(echo $i | sed -e 's/"//g')
+                if [ $i_clean  = "tcp_cmds" ] || \
+		   [ $i_clean = "tcp_cmds_noexpect" ] || \
+                   [ $i_clean = "multicast" ] || \
+                   [ $i_clean = "ipv6" ] || \
+                   [ $i_clean = "ipv6_noexpect" ] || \
+                   [ $i_clean = "nfs" ] || \
+                   [ $i_clean = "multicast" ] ;
                 then \
                     run_net_test="Y" ;
                 fi ;
diff -ru ltp-full-20060918.orig/testcases/network/generate.sh ltp-full-20060918/testcases/network/generate.sh
--- ltp-full-20060918.orig/testcases/network/generate.sh	2008-04-09 18:13:07.000000000 +0200
+++ ltp-full-20060918/testcases/network/generate.sh	2008-04-09 18:17:56.000000000 +0200
@@ -54,7 +54,7 @@
 
 if [ ! -e $data_dir/bin.sm ] ; then
 	cnt=6
-	while ((cnt--)) ; do
+	while [ $((cnt=cnt-1)) -ge 0 ] ; do
 		gzip -1 -c datafiles/ascii.sm >> $data_dir/bin.sm
 	done
 fi
@@ -67,7 +67,7 @@
 		return 0
 	fi
 
-	while ((cnt--)) ; do
+	while [ $((cnt=cnt-1)) -ge 0 ] ; do
 		cat $input >> $output
 	done
 }

Attachment: signature.asc
Description: Digital signature

Reply via email to