From: DAN LI <li.dan@cn.fujitsu.com>
To: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH] prot_hsymlinks.c: remove the unnecessary calling of cleanup
Date: Tue, 21 May 2013 10:58:03 +0800 [thread overview]
Message-ID: <519AE2BB.2070708@cn.fujitsu.com> (raw)
In-Reply-To: <519477E5.4030807@cn.fujitsu.com>
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
next prev parent reply other threads:[~2013-05-21 3:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2013-05-21 3:45 ` Wanlong Gao
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=519AE2BB.2070708@cn.fujitsu.com \
--to=li.dan@cn.fujitsu.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.