Skip to content

testsuite: check if /proc/self/smaps exists

Florian Schmaus requested to merge flow/procps:skip-tests-if-no-smaps into master

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

Merge request reports