From: Garrett C. <yab...@us...> - 2009-11-18 12:05:33
|
Update of /cvsroot/ltp/ltp/testcases/network/stress/interface In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv26171/network/stress/interface Modified Files: if4-addr-change Log Message: Hello guys, I have run into some problems with the network stress tests. I submitted a bug through the sourceforge bug tracker, but after subscribing to the mailing list I can see that it's here where all the action is. If this is not the right place, then please tell me what is the preferred way to submit bug reports and patches. I am using ltp-full-20091031. A lot of the TCP tests involving packet loss fail with this error: ./tcp4-uni-basic01: line 394: netem_param: unbound variable The reason is that strict checking for undefined variables is enabled with "set -u", but the variable netem_param is not always defined before testing its contents. The fix I have applied is to initialize the netem_param variable with an empty string. Also if4-addr-change always fails with this error: TBROK : Failed to set an IPv4 address at the remote host I have found the reason to be a missing semicolon. Best regards, Radoslav Kolev Signed-off-by: Garrett Cooper <yan...@gm...> Index: if4-addr-change =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/network/stress/interface/if4-addr-change,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** if4-addr-change 6 Oct 2008 03:30:34 -0000 1.3 --- if4-addr-change 18 Nov 2009 12:05:20 -0000 1.4 *************** *** 71,75 **** # Network portion of the IPv4 address ! IPV4_NETWORK=${IPV4_NETWORK-"10.0.0"} # Netmask of for the tested network --- 71,75 ---- # Network portion of the IPv4 address ! IPV4_NETWORK=${IPV4_NETWORK:-"10.0.0"} # Netmask of for the tested network |