summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/riscv/mm/run_mmap.sh
blob: ca5ad7c48bad177d6822c64b09ae9ebede3be6d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0

original_stack_limit=$(ulimit -s)

./mmap_default

# Force mmap_bottomup to be ran with bottomup memory due to
# the unlimited stack
ulimit -s unlimited
./mmap_bottomup
ulimit -s $original_stack_limit