A fix for Bug 24841. The ping test is now skipped on SLES, but does not affect
the execution of the rest of the test.
diff --git a/testcases/network/multicast/mc_commo/mc_commo b/testcases/network/multicast/mc_commo/mc_commo
index f1941d7..ea28b5e 100755
--- a/testcases/network/multicast/mc_commo/mc_commo
+++ b/testcases/network/multicast/mc_commo/mc_commo
@@ -95,9 +95,22 @@
netstat -ng | grep -q $GROUP_ADDR
[ $? = 0 ] || end_testcase "membership not set for $GROUP_ADDR"
- echo "Running ping to verify group can be reached "
- ping -c5 -I $INTERFACE $GROUP_ADDR > /dev/null
- [ $? = 0 ] || end_testcase "failed: ping -c5 -I $INTERFACE $GROUP_ADDR"
+# This eliminates the ping test but does not compromise the execution of the
+# test
+
+ distro_version=""
+ distro_name=""
+ distro_version=`cat /etc/issue | awk {'print $7'}`
+ distro_name=`cat /etc/issue | awk {'print $3'}`
+
+ if [ $distro_version -ge 9 -a $distro_name == SUSE ]; then
+ echo "Ping test skipped"
+ else
+ echo "Running ping to verify group can be reached "
+ ping -c5 -I $INTERFACE $GROUP_ADDR > /dev/null
+ [ $? = 0 ] || end_testcase "failed: ping -c5 -I $INTERFACE $GROUP_ADDR"
+ fi
+
# Flood the interface in an attempt to overload the sends and
# recvs to and from the host.