ctdb-tests: Make the debug hung script test cope with unreadable stacks
authorMartin Schwenke <martin@meltin.net>
Wed, 14 Nov 2018 03:09:42 +0000 (14:09 +1100)
committerTim Beale <timbeale@samba.org>
Thu, 15 Nov 2018 07:15:32 +0000 (08:15 +0100)
commitc1dd6382e3211792e313f7d559b943f55c9cb0e1
treef21b292ac9c300794c70952135d96e6aac86583e
parente3b6402b8b60f5af22a1097847aa7389f147e580
ctdb-tests: Make the debug hung script test cope with unreadable stacks

Ideally this would just involve using "test -r".  However, operating
system security features may mean that kernel stacks are not readable
even though they appear to be.

Instead, try reading that stack of a process on the test node.  If
that succeeds then so should reading the stack of the "stuck" sleep
process in the test.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13684

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Tim Beale <timbeale@catalyst.net.nz>
Autobuild-User(master): Tim Beale <timbeale@samba.org>
Autobuild-Date(master): Thu Nov 15 08:15:32 CET 2018 on sn-devel-144
ctdb/tests/simple/90_debug_hung_script.sh