ctdb-tests: Provide a method to dump the stack on abort
commitd39377d6fc91763b094f2cc888475287de7fbd3b
authorMartin Schwenke <martin@meltin.net>
Wed, 5 Jan 2022 02:45:33 +0000 (5 13:45 +1100)
committerAmitay Isaacs <amitay@samba.org>
Tue, 3 May 2022 09:19:31 +0000 (3 09:19 +0000)
tree6aa35a5a66cd0df6dbfee2b48881b175bdac31b0
parent73b27def7b729de7fc4e48025b1491a609e73332
ctdb-tests: Provide a method to dump the stack on abort

Some tests make generous use of assert() and it can be difficult to
guess the cause of failures without resorting to GDB.  This provides
some help.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/src/test_backtrace.c [new file with mode: 0644]
ctdb/tests/src/test_backtrace.h [new file with mode: 0644]
ctdb/wscript