Hi, Referring, http://www.gnu.org/software/bash/manual/bash.html
${parameter:+word} If parameter is null or unset, nothing is substituted, otherwise the expansion of word is substituted. As per the syntax of "mc_gethost" it accepts -d, -6 or -f. usage: mc_gethost [-d] [-6] [-f] (hostname|ipaddr) Hence, I guess, the following correction is required. diff --git a/testcases/network/tcp_cmds/sendfile/sendfile01 b/testcases/network/tcp_cmds/sendfile/sendfile01 index 1598106..ad16290 100755 --- a/testcases/network/tcp_cmds/sendfile/sendfile01 +++ b/testcases/network/tcp_cmds/sendfile/sendfile01 @@ -61,7 +61,7 @@ do_setup() exists awk diff mc_gethost grep rsh stat - if ! IPADDR=$(mc_gethost ${EXEC_SUFFIX:+6} $RHOST | awk 'BEGIN { ec=1 } /addresses:/ {print $2; ec=0 } E + if ! IPADDR=$(mc_gethost ${EXEC_SUFFIX:+-6} $RHOST | awk 'BEGIN { ec=1 } /addresses:/ {print $2; ec=0 } # XXX (garrcoop): || exit 1 is there to prevent the test from hanging in the event of an install err end_testcase "Failed to determine the appropriate IP address for the machine." || exit 1 fi If you feel this is correct, please find the patch attached with this e-mail. Thanks and Regards, CHANDRASHEKHAR NANDI
0001-sendfile01-Corrected-mc_gethost-argument.patch
Description: Binary data
------------------------------------------------------------------------------ Is your legacy SCM system holding you back? Join Perforce May 7 to find out: • 3 signs your SCM is hindering your productivity • Requirements for releasing software faster • Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce
_______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list