summaryrefslogtreecommitdiff
path: root/ashmemtest-expanded/test1.txt
blob: 6ecd6dff46c8384a27c8f56f53a92294e61e7340 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Simple test to call cache shrinker.  Expected output is:
#
# -> got 1000 pages
# -> unpin 0..500 OK ret 0
# -> pin 0..500 OK ret 1
#
# Here the call to kernel cache shrinker should give 1
# (e.g. ASHMEM_WAS_PURGED) for the last pin operation.

getpages 1000
unpin 0 500
shrink
pin 0 500