public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: chrubis@suse.cz
To: Caspar Zhang <caspar@casparzhang.com>
Cc: ltp-list@lists.sourceforge.net,
	Vincent Hsu <vincent.hsu@linaro.org>,
	linaro-networking@linaro.org
Subject: Re: [LTP] [LNG][PATCH 7/8] ltp-networking/tcp_cmds/netstat: fix netstat test
Date: Tue, 26 Nov 2013 13:56:06 +0100	[thread overview]
Message-ID: <20131126125606.GA10489@rei> (raw)
In-Reply-To: <5285BEE3.5030405@casparzhang.com>

Hi!
> > The netstat command will return nozero on Ubuntu 12.04 even if
> > execution success.
> >
> > for example:
> > in Ubuntu
> >      $ netstat -s 1>/dev/null 2>&1 ; echo $?
> >      1
> > in CentOS
> >      $ netstat -s 1>/dev/null 2>&1 ; echo $?
> >      0
> >
> > Signed-off-by: Vincent Hsu <vincent.hsu@linaro.org>
> 
> This should be a bug in netstat @ Ubuntu I guess?

Looks like a bug in Debian to me, I've looked into the source package
and traced it down to the netstat.c-assorted_changes.patch, that seems
to add ipv6 support and changes the exit(0) to exit(1) for no good
reason.

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  reply	other threads:[~2013-11-26 12:56 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-14  3:38 [LTP] [LNG][PATCH 1/8] ltp-networking: standardize test result message Vincent Hsu
2013-11-14  3:38 ` [LTP] [LNG][PATCH 2/8] ltp-networking/rpc: gave precise test name Vincent Hsu
2013-11-14  3:38 ` [LTP] [LNG][PATCH 3/8] ltp-networking/nfs: use NFSv3 by default Vincent Hsu
2013-11-14  3:38 ` [LTP] [LNG][PATCH 4/8] ltp-networking/nfs: remove absolute path for showmount Vincent Hsu
2013-11-14  3:38 ` [LTP] [LNG][PATCH 5/8] ltp-networking/nfs: fix nfsstat01 typo Vincent Hsu
2013-11-14  3:38 ` [LTP] [LNG][PATCH 6/8] ltp-networking/tcp_cmds/finger: fix finger test Vincent Hsu
2013-11-26 13:33   ` chrubis
2013-11-14  3:38 ` [LTP] [LNG][PATCH 7/8] ltp-networking/tcp_cmds/netstat: fix netstat test Vincent Hsu
2013-11-15  6:27   ` Caspar Zhang
2013-11-26 12:56     ` chrubis [this message]
2013-11-14  3:38 ` [LTP] [LNG][PATCH 8/8] ltp-networking/iproute: fix iproute test Vincent Hsu
2013-11-26 13:31   ` chrubis
2013-11-26 13:34 ` [LTP] [LNG][PATCH 1/8] ltp-networking: standardize test result message chrubis

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=20131126125606.GA10489@rei \
    --to=chrubis@suse.cz \
    --cc=caspar@casparzhang.com \
    --cc=linaro-networking@linaro.org \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=vincent.hsu@linaro.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox