# 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
