testsuite: check if /proc/self/smaps exists
On Linux systems wehre CONFIG_PROC_PAGE_MONITOR is not enabled, /proc/self/smaps does not exist causing the test suite to fail.
Instead, check for /proc/self/smaps and skip the tests if the file does not exist.
Based on a patch from tobbs@opentrash.com posted to procps@freelists.org (https://www.freelists.org/post/procps/Patch-Test-suite-fails-if-procpidsmaps-is-absent,1) and applied by Gentoo (https://bugs.gentoo.org/583036).
Signed-off-by: Florian Schmaus flo@geekplace.eu