From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Return-Path: Date: Mon, 6 May 2019 13:48:04 +0300 From: Cyrill Gorcunov Subject: Re: [PATCH 3/3] test: slab_arena -- Verify madvise Message-ID: <20190506104804.GO2488@uranus.lan> References: <20190501155006.14546-1-gorcunov@gmail.com> <20190501155006.14546-4-gorcunov@gmail.com> <20190506104520.it7uem5woxykg5xt@esperanza> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190506104520.it7uem5woxykg5xt@esperanza> To: Vladimir Davydov Cc: tml , Alexander Turenko List-ID: On Mon, May 06, 2019 at 01:45:20PM +0300, Vladimir Davydov wrote: > [Cc += Alexander re tests] > > On Wed, May 01, 2019 at 06:50:06PM +0300, Cyrill Gorcunov wrote: > > Since madvise support depends on sys libraries > > and kernel version we print error if only small > > supports it and /proc/self/smaps provide more > > less decent VmFlags. > > TBO I wouldn't bother testing this feature at all, because it's way too > platform dependent. Test does check for /proc/self/smaps file present and for VmFlags entry present, if neither of it found we just exit silently, without errors. > > Alternatively, we could test it by crashing a process and checking the > size of the generated core file, but then again it doesn't look like a > portable way. Yes, not portable. > > Alexander, any ideas?