* Re: [LTP] [PATCH] vma01: check kernel version
[not found] <1372912287-8610-1-git-send-email-gaowanlong@cn.fujitsu.com>
@ 2013-07-08 10:57 ` chrubis
0 siblings, 0 replies; only message in thread
From: chrubis @ 2013-07-08 10:57 UTC (permalink / raw)
To: Wanlong Gao; +Cc: Garrett Cooper, LTP, Mike Frysinger
Hi!
> This is just a kernel behaviour change to avoid the possible
> scalability issue, not a real kernel bug. So, check the kernel
> version.
>
> Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
> ---
> testcases/kernel/mem/vma/vma01.c | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/testcases/kernel/mem/vma/vma01.c b/testcases/kernel/mem/vma/vma01.c
> index 7cd22c0..c6cb1f5 100644
> --- a/testcases/kernel/mem/vma/vma01.c
> +++ b/testcases/kernel/mem/vma/vma01.c
> @@ -192,7 +192,13 @@ static void check_status(int status)
> tst_resm(TPASS, "two 3*ps VMAs found.");
> break;
> case 1:
> - tst_resm(TFAIL, "A single 6*ps VMA found.");
> + if (tst_kvercmp(3, 0, 0) < 0) {
> + tst_resm(TCONF, "A single 6*ps VMA found. You may need"
> + " to back port kernel commit 965f55d "
> + "to fix this scalability issue.");
> + } else {
> + tst_resm(TFAIL, "A single 6*ps VMA found.");
> + }
> break;
> default:
> tst_brkm(TBROK, cleanup, "unexpected VMA found.");
This one looks fine.
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] only message in thread