summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/riscv/mm/run_mmap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/riscv/mm/run_mmap.sh')
-rwxr-xr-xtools/testing/selftests/riscv/mm/run_mmap.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/testing/selftests/riscv/mm/run_mmap.sh b/tools/testing/selftests/riscv/mm/run_mmap.sh
new file mode 100755
index 0000000000..ca5ad7c48b
--- /dev/null
+++ b/tools/testing/selftests/riscv/mm/run_mmap.sh
@@ -0,0 +1,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