From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1UcrPJ-00073h-U4 for ltp-list@lists.sourceforge.net; Thu, 16 May 2013 06:11:18 +0000 Received: from [222.73.24.84] (helo=song.cn.fujitsu.com) by sog-mx-4.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1UcrPF-0005fM-S8 for ltp-list@lists.sourceforge.net; Thu, 16 May 2013 06:11:17 +0000 Received: from fnstmail02.fnst.cn.fujitsu.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id r4G6AxJn018878 for ; Thu, 16 May 2013 14:11:00 +0800 Message-ID: <519477E5.4030807@cn.fujitsu.com> Date: Thu, 16 May 2013 14:08:37 +0800 From: DAN LI MIME-Version: 1.0 Subject: [LTP] [PATCH] prot_hsymlinks.c: remove the unnecessary calling of cleanup List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: LTP list Should not call cleanup here since nothing was setted by setup. Signed-off-by: DAN LI --- testcases/kernel/security/prot_hsymlinks/prot_hsymlinks.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/testcases/kernel/security/prot_hsymlinks/prot_hsymlinks.c b/testcases/kernel/security/prot_hsymlinks/prot_hsymlinks.c index 1eec0f9..82bc770 100644 --- a/testcases/kernel/security/prot_hsymlinks/prot_hsymlinks.c +++ b/testcases/kernel/security/prot_hsymlinks/prot_hsymlinks.c @@ -196,10 +196,9 @@ static void setup(int argc, char *argv[]) tst_require_root(NULL); - if (tst_kvercmp(3, 7, 0) < 0) { - tst_brkm(TCONF, cleanup, + if (tst_kvercmp(3, 7, 0) < 0) + tst_brkm(TCONF, NULL, "Test must be run with kernel 3.7 or newer"); - } /* initialize user names */ strcpy(users[ROOT].name, "root"); -- 1.7.11.rc0 ------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list