In iproute2 whose version is earlier than v2.6.34, ip command doesn't support tuntap object. This leads to the case (netns_netlink.c) failure with TFAIL status. It is not suitable, so fix this case' exit status with TCONF in the above condition.
Signed-off-by: Xing Gu <gux.f...@cn.fujitsu.com> --- testcases/kernel/containers/netns/netns_netlink.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testcases/kernel/containers/netns/netns_netlink.c b/testcases/kernel/containers/netns/netns_netlink.c index 08caa98..29b7488 100644 --- a/testcases/kernel/containers/netns/netns_netlink.c +++ b/testcases/kernel/containers/netns/netns_netlink.c @@ -47,6 +47,8 @@ #define MAX_TRIES 1000 +#define IP_TUNTAP_MIN_VER 100519 + char *TCID = "netns_netlink"; int TST_TOTAL = 1; struct tst_checkpoint checkpoint; @@ -60,6 +62,7 @@ static void cleanup(void) static void setup(void) { tst_require_root(NULL); + check_iproute(IP_TUNTAP_MIN_VER); check_netns(); tst_tmpdir(); TST_CHECKPOINT_CREATE(&checkpoint); -- 1.9.3 ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list