From: Wanlong Gao <gaowanlong@cn.fujitsu.com>
To: Peng Haitao <penght@cn.fujitsu.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH] dummy.c: fix a bug of TCONF fail
Date: Tue, 26 Jun 2012 16:36:16 +0800 [thread overview]
Message-ID: <4FE97480.3040007@cn.fujitsu.com> (raw)
In-Reply-To: <1340593602-5462-1-git-send-email-penght@cn.fujitsu.com>
On 06/25/2012 11:06 AM, Peng Haitao wrote:
> When HAVE_LIBCAP or HAVE_SYS_CAPABILITY_H is not defined,
> the case should not be fail.
pushed, thanks Peng.
Wanlong Gao
>
> Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
> ---
> testcases/kernel/security/cap_bound/dummy.c | 10 ++++++----
> 1 file changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/testcases/kernel/security/cap_bound/dummy.c b/testcases/kernel/security/cap_bound/dummy.c
> index 3ee7c9b..d161efd 100644
> --- a/testcases/kernel/security/cap_bound/dummy.c
> +++ b/testcases/kernel/security/cap_bound/dummy.c
> @@ -1,10 +1,14 @@
> #include <stdio.h>
> #include "config.h"
> +#include "test.h"
>
> #if HAVE_SYS_CAPABILITY_H
> #include <sys/capability.h>
> #endif
>
> +char *TCID = "dummy";
> +int TST_TOTAL=1;
> +
> int main(void)
> {
> #if HAVE_SYS_CAPABILITY_H
> @@ -15,11 +19,9 @@ int main(void)
> cap_free(cur);
> return 0;
> #else /* libcap */
> - printf("System doesn't support POSIX capabilities.\n");
> - return 1;
> + tst_brkm(TCONF, NULL, "System doesn't support POSIX capabilities.");
> #endif
> #else /* capability_h */
> - printf("System doesn't support sys/capability.h\n");
> - return 1;
> + tst_brkm(TCONF, NULL, "System doesn't support sys/capability.h.");
> #endif
> }
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
prev parent reply other threads:[~2012-06-26 8:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-25 3:06 [LTP] [PATCH] dummy.c: fix a bug of TCONF fail Peng Haitao
2012-06-26 8:36 ` Wanlong Gao [this message]
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=4FE97480.3040007@cn.fujitsu.com \
--to=gaowanlong@cn.fujitsu.com \
--cc=ltp-list@lists.sourceforge.net \
--cc=penght@cn.fujitsu.com \
/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