All of lore.kernel.org
 help / color / mirror / Atom feed
From: Caspar Zhang <caspar@casparzhang.com>
To: liuhangbin@gmail.com
Cc: ltp-list@lists.sourceforge.net, Xie Lingyun <lingyun.xie@bj.cs2c.com.cn>
Subject: Re: [LTP] [PATCH]xinetd/xinetd_tests.sh:disable the IPV6 localhost
Date: Thu, 04 Jul 2013 22:00:35 +0800	[thread overview]
Message-ID: <51D58003.1020500@casparzhang.com> (raw)
In-Reply-To: <CALGiYOH4uhAoPgEQ+-p889GbjTazpXkyXabXs021xdmOTbYkoA@mail.gmail.com>

Hangbin, have you executed such tests before, and/or met any ipv4/v6 issue?

Thanks,
Caspar


On 07/04/2013 09:30 PM, Xie Lingyun wrote:
> If IPV6 is enabled, telnet localhost becomes telnet ::1 and telnet
> 127.0.0.1.
> The first one makes the command output different from the expected result.
>
>
> Thanks,
> Lingyun Xie
>
> 0001-xinetd-xinetd_tests.sh-disable-the-IPV6-localhost.patch
>
>
>  From 75c79721c095cce27548e74260c1e42681e1a267 Mon Sep 17 00:00:00 2001
> From: mellonwand<mellonwand@gmail.com>
> Date: Thu, 4 Jul 2013 16:42:42 +0800
> Subject: [PATCH] xinetd/xinetd_tests.sh:disable the IPV6 localhost
>
> If IPV6 is enabled, telnet localhost becomes telnet ::1 and telnet 127.0.0.1. The first one makes the command's output different from the expected output.
>
> Signed-off-by: Xie Lingyun<lingyun.xie@bj.cs2c.com.cn>
> ---
>   testcases/network/xinetd/xinetd_tests.sh | 5 +++--
>   1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/testcases/network/xinetd/xinetd_tests.sh b/testcases/network/xinetd/xinetd_tests.sh
> index 83eb8a7..d2c851d 100755
> --- a/testcases/network/xinetd/xinetd_tests.sh
> +++ b/testcases/network/xinetd/xinetd_tests.sh
> @@ -128,6 +128,7 @@ init()
>
>       # Create expected file with telnet disabled.
>       cat > $LTPTMP/tst_xinetd.exp.1 <<-EOF || RC=$?
> +	telnet: connect to address 127.0.0.1: Connection refused
>   	telnet: Unable to connect to remote host: Connection refused
>   	EOF
>
> @@ -263,7 +264,7 @@ test01()
>
>   	# Not checking for exit code from telnet command because telnet is
>   	# not terminated by the test gracefully.
> -	echo "\x04" | telnet localhost 2>$LTPTMP/tst_xinetd.out 1>/dev/null
> +	echo "\x04" | telnet 127.0.0.1 2>$LTPTMP/tst_xinetd.out 1>/dev/null
>   	diff -iwB $LTPTMP/tst_xinetd.out  $LTPTMP/tst_xinetd.exp.1 \
>   		> $LTPTMP/tst_xinetd.err 2>&1 || RC=$?
>       if [ $RC -ne 0 ]
> @@ -312,7 +313,7 @@ test01()
>
>   	# Not checking for exit code from telnet command because telnet is
>   	# not terminated by the test gracefully.
> -	echo "\x04" | telnet localhost > $LTPTMP/tst_xinetd.out 2>&1
> +	echo "\x04" | telnet 127.0.0.1 > $LTPTMP/tst_xinetd.out 2>&1
>
>   	diff -iwB $LTPTMP/tst_xinetd.out  $LTPTMP/tst_xinetd.exp.2 \
>   		> $LTPTMP/tst_xinetd.err 2>&1 || RC=$?
> -- 1.8.3.1
>


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  reply	other threads:[~2013-07-04 14:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-04 13:30 [LTP] [PATCH]xinetd/xinetd_tests.sh:disable the IPV6 localhost Xie Lingyun
2013-07-04 14:00 ` Caspar Zhang [this message]
     [not found]   ` <CAPwn2JRzDE2U_kcbEEJobW9zFsE+KRqme_6QFhp+6jB-D2ZU-A@mail.gmail.com>
2013-07-05  2:24     ` Caspar Zhang
2013-07-05  2:52       ` Xie Lingyun
2013-07-05  3:10         ` Hangbin Liu
2013-07-05  3:17   ` Hangbin Liu
2013-07-05  3:35     ` Xie Lingyun
  -- strict thread matches above, loose matches on Subject: below --
2013-07-08  2:22 Hangbin Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51D58003.1020500@casparzhang.com \
    --to=caspar@casparzhang.com \
    --cc=lingyun.xie@bj.cs2c.com.cn \
    --cc=liuhangbin@gmail.com \
    --cc=ltp-list@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.