Skip to content

Commit

Permalink
vma01: check kernel version
Browse files Browse the repository at this point in the history
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>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
  • Loading branch information
gaowanlong committed Jul 9, 2013
1 parent 9146d83 commit b69a671
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion testcases/kernel/mem/vma/vma01.c
Expand Up @@ -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.");
Expand Down

0 comments on commit b69a671

Please sign in to comment.