xref: /linux/tools/testing/selftests/riscv/mm/run_mmap.sh (revision e3b2949e3fa2fd8c19cd5fbb0424d38f70a70e9c)
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0
3
4original_stack_limit=$(ulimit -s)
5
6./mmap_default
7
8# Force mmap_bottomup to be ran with bottomup memory due to
9# the unlimited stack
10ulimit -s unlimited
11./mmap_bottomup
12ulimit -s $original_stack_limit
13