Skip to contentSkip to conversation

ping01 shouldn't use hostname

LTP Garrett Cooper 1 participant 2 messages Oct 15, 2009 – Oct 19, 2009

lore
Share & tools
lore
#0 lore raw

<output test="ipv6_noexpect : ping6">
ping01 0 TINFO : ping with 8 16 32 64 128 256 512 1024 2048
4064 ICMP packets

ping01 0 TINFO : calling ping with packet size = 8

ping: unknown host nova_k5

ping01 0 TINFO : Cleaning up.

ping01 1 TFAIL : Test broken: failed: ping -c 5 -s 8 nova_k5

ping01 0 TINFO : Cleaning up.
</output>

Thanks,
-Garrett

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#1 lore raw
Quoted 6 lines · Garrett Cooper

<output test="ipv6_noexpect : ping6">
ping01      0  TINFO  :  ping with 8 16 32 64 128 256 512 1024 2048 4064 ICMP packets

ping01      0  TINFO  :  calling ping with packet size = 8

Quoted 8 lines

ping: unknown host nova_k5

ping01      0  TINFO  :  Cleaning up.

ping01      1  TFAIL  :  Test broken: failed: ping -c 5 -s 8 nova_k5

ping01      0  TINFO  :  Cleaning up.
</output>

This change (which I'm committing to cvs right now) changes the default to the loopback address:

gcooper@orangebox /scratch/ltp-dev2/ltp/testcases/network/tcp_cmds/ping $ ./ping01
ping01 0 TINFO : ping with 8 16 32 64 128 256 512 1024 2048
4064 ICMP packets

ping01      0  TINFO  :  calling ping with packet size = 8
ping01      0  TINFO  :  calling ping with packet size = 16
ping01      0  TINFO  :  calling ping with packet size = 32
ping01      0  TINFO  :  calling ping with packet size = 64
ping01      0  TINFO  :  calling ping with packet size = 128
ping01      0  TINFO  :  calling ping with packet size = 256
ping01      0  TINFO  :  calling ping with packet size = 512
ping01      0  TINFO  :  calling ping with packet size = 1024
ping01      0  TINFO  :  calling ping with packet size = 2048
ping01      0  TINFO  :  calling ping with packet size = 4064
ping01      0  TINFO  :  Cleaning up.
ping01      1  TPASS  :  Test successful

gcooper@orangebox /scratch/ltp-dev2/ltp/testcases/network/tcp_cmds/ping $

The default can still be changed by specifying the RHOST environment variable.

Index: ping01
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/network/tcp_cmds/ping/ping01,v retrieving revision 1.6

ping01 19 Oct 2009 02:30:42 -0000 renamed from ping01 9 Oct 2009 17:56:07 -0000 1.6 +2 -3
diff -u -r1.6 ping01
@@ -48,9 +48,9 @@
 
     tst_setup
 
-    exists hostname ping
+    exists ping
 
-    RHOST=${RHOST:-`hostname`}
+    RHOST=${RHOST:-127.0.0.1}
 }
 
------------------------------------------------------------------------------

Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list