From: Cyril H. <su...@li...> - 2011-04-19 16:33:16
|
The branch, master, has been updated via 0fbf326ed891f4604ae4b975aa2c369a48b2145f (commit) from 1bc8cea5adb92046d40fa4ac4039968febe2882d (commit) - Log ----------------------------------------------------------------- commit 0fbf326ed891f4604ae4b975aa2c369a48b2145f Author: Cyril Hrubis <ch...@su...> Date: Tue Apr 19 18:29:16 2011 +0200 Make the ksm02 and ksm04 correclty exit with TCONF. Just another numa detection fix. Signed-off-by: Cyril Hrubis <ch...@su...> ----------------------------------------------------------------------- Summary of changes: testcases/kernel/mem/ksm/ksm02.c | 2 +- testcases/kernel/mem/ksm/ksm04.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testcases/kernel/mem/ksm/ksm02.c b/testcases/kernel/mem/ksm/ksm02.c index 3ae4c08..39ad3f9 100644 --- a/testcases/kernel/mem/ksm/ksm02.c +++ b/testcases/kernel/mem/ksm/ksm02.c @@ -93,7 +93,7 @@ int main(int argc, char *argv[]) tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg); nnodes = count_numa(); - if (count_numa() == 1) + if (count_numa() <= 1) tst_brkm(TCONF, NULL, "required a NUMA system."); setup(); diff --git a/testcases/kernel/mem/ksm/ksm04.c b/testcases/kernel/mem/ksm/ksm04.c index 5121111..85ebb99 100644 --- a/testcases/kernel/mem/ksm/ksm04.c +++ b/testcases/kernel/mem/ksm/ksm04.c @@ -93,7 +93,7 @@ int main(int argc, char *argv[]) tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg); nnodes = count_numa(); - if (count_numa() == 1) + if (count_numa() <= 1) tst_brkm(TCONF, NULL, "required a NUMA system."); setup(); hooks/post-receive -- ltp |