Skip to content

Commit b5b0013

Browse files
dcpleungfabiobaltieri
authored andcommitted
tests: demand_paging/mem_map: move malloc config to prj.conf
Both tests set CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=0 so extract it to prj.conf. The tests require malloc arena size to be 0 to run successful. By refactoring the config, it is now able to with west build and still passing. Signed-off-by: Daniel Leung <[email protected]>
1 parent 191d38d commit b5b0013

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

tests/kernel/mem_protect/demand_paging/mem_map/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ CONFIG_DEMAND_PAGING_STATS=y
44
CONFIG_DEMAND_PAGING_THREAD_STATS=y
55
CONFIG_DEMAND_PAGING_TIMING_HISTOGRAM=y
66
CONFIG_TEST_USERSPACE=y
7+
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=0

tests/kernel/mem_protect/demand_paging/mem_map/testcase.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ tests:
1010
- qemu_cortex_a53
1111
- qemu_cortex_a53/qemu_cortex_a53/smp
1212
- qemu_x86_tiny
13-
extra_configs:
14-
- CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=0
1513
kernel.demand_paging.mem_map.timing_funcs:
1614
tags:
1715
- kernel
@@ -20,4 +18,3 @@ tests:
2018
platform_allow: qemu_x86_tiny
2119
extra_configs:
2220
- CONFIG_DEMAND_PAGING_STATS_USING_TIMING_FUNCTIONS=y
23-
- CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=0

0 commit comments

Comments
 (0)