max_map_count: Add judgment of abnormal situation
PATCH 1/1 max_map_count: Add judgment of abnormal situation
When max_iters < max_maps, there is no post processing, and the test will report "TBROK: Test haven't reported results".
---------------v1->v2: modify comparison span of the judgment.
---------------
--- testcases/kernel/mem/tunable/max_map_count.c | 3 +++ 1 file changed, 3 insertions(+)
testcases/kernel/mem/tunable/max_map_count.c +3 -0
@@ -164,6 +164,9 @@ static void max_map_count_test(void) max_iters =MAX_MAP_COUNT ; max_maps =MAP_COUNT_DEFAULT ; +if (max_iters < max_maps) +tst_brk (TCONF ,"test requires more free memory" ); +while (max_maps <= max_iters) {set_sys_tune ("max_map_count" , max_maps,1 );
--
2.17.1
PATCH 1/1 max_map_count: Add judgment of abnormal situation
Hi Zhao,
Quoted 2 lines
When
max_iters<max_maps, there is no post processing, and the test will report "TBROK: Test haven't reported results".
Thanks, merged!
Quoted 4 lines
Signed-off-by Zhao Gongyi <[email protected]>---------------
v1->v2: modify comparison span of the judgment.
---------------
FYI: about these 3 lines below Signed-off-by: text should go under --- and both --------------- are not needed. Not important, just in that way this info won't endup in the commit message (anything below --- is not going to be in the commit message).
Kind regards,
Petr