public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] prot_hsymlinks.c: remove the unnecessary calling of cleanup
@ 2013-05-16  6:08 DAN LI
  2013-05-21  2:58 ` DAN LI
  2013-05-21  3:45 ` Wanlong Gao
  0 siblings, 2 replies; 3+ messages in thread
From: DAN LI @ 2013-05-16  6:08 UTC (permalink / raw)
  To: LTP list


Should not call cleanup here since nothing was setted by setup.

Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
---
 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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [LTP] [PATCH] prot_hsymlinks.c: remove the unnecessary calling of cleanup
  2013-05-16  6:08 [LTP] [PATCH] prot_hsymlinks.c: remove the unnecessary calling of cleanup DAN LI
@ 2013-05-21  2:58 ` DAN LI
  2013-05-21  3:45 ` Wanlong Gao
  1 sibling, 0 replies; 3+ messages in thread
From: DAN LI @ 2013-05-21  2:58 UTC (permalink / raw)
  To: ltp-list

Hi,
sirs

any comment for this patch?

This unnecessary calling of cleanup() will cause TC prot_hsymlinks
failing when kernel is older than 3.7.0.

On 05/16/2013 02:08 PM, DAN LI wrote:
> 
> Should not call cleanup here since nothing was setted by setup.
> 
> Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
> ---
>  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");
> 



------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LTP] [PATCH] prot_hsymlinks.c: remove the unnecessary calling of cleanup
  2013-05-16  6:08 [LTP] [PATCH] prot_hsymlinks.c: remove the unnecessary calling of cleanup DAN LI
  2013-05-21  2:58 ` DAN LI
@ 2013-05-21  3:45 ` Wanlong Gao
  1 sibling, 0 replies; 3+ messages in thread
From: Wanlong Gao @ 2013-05-21  3:45 UTC (permalink / raw)
  To: DAN LI; +Cc: LTP list

On 05/16/2013 02:08 PM, DAN LI wrote:
> Should not call cleanup here since nothing was setted by setup.
> 
> Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>

Applied, thank you.

Wanlong Gao


------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-05-21  3:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-16  6:08 [LTP] [PATCH] prot_hsymlinks.c: remove the unnecessary calling of cleanup DAN LI
2013-05-21  2:58 ` DAN LI
2013-05-21  3:45 ` Wanlong Gao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox