selftest: change to src dir for panic backtrace
authorDavid Disseldorp <ddiss@samba.org>
Wed, 11 Sep 2013 15:56:02 +0000 (17:56 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 11 Sep 2013 22:19:39 +0000 (00:19 +0200)
commit40db5637911fa6307187f2ea1f3bce951746fbec
tree53207d6e57d053a247463d969200c767ce2c2d24
parent403ddac6c899deeb452b32266e1b2169b1a09abe
selftest: change to src dir for panic backtrace

When running selftest against a Samba3 target, the working directory is
set to st/s3dc/share. The existing "panic action" script attempts
obtain a backtrace for a paniced smbd process using GDB, which does not
locate debug info relative to the working directory.

This commit changes the S3 selftest panic action to first enter
the base source directory before attempting to obtain the backtrace,
ensuring that GDB can locate the debug info.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Sep 12 00:19:39 CEST 2013 on sn-devel-104
selftest/target/Samba3.pm