aboutsummaryrefslogtreecommitdiff
path: root/tests/madvise_reserve.sh
blob: 4a88ade476482194c8d92a53223a8f4482dcd983 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

. wrapper-utils.sh

# madvise is known broken before 2.6.30
compare_kvers `uname -r` "2.6.30"
if [ $? -eq 1 ]; then
	echo "FAIL (assumed) kernel bug"
	exit $RC_FAIL
else
	EXP_RC=$RC_PASS
	exec_and_check $EXP_RC quota "$@"
fi