ctdb-tests: Add asserts to ensure that pointers are set
commitc0891339ec269dd559b18e6e2347757a54aef55e
authorMartin Schwenke <martin@meltin.net>
Tue, 17 Mar 2015 00:03:52 +0000 (17 11:03 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 23 Mar 2015 11:23:12 +0000 (23 12:23 +0100)
treea132b0792eac08cdcc271c10eab574534b74f41d
parentc07a54b2941c0d5dc69eb435405daddac1b994bf
ctdb-tests: Add asserts to ensure that pointers are set

These can be unset if a NODEMAP, IFACES or VNNMAP section is missing.
Affected functions would then dereference a NULL pointer and the test
program would crash.  Adding some helpful messages makes the problem
easier to diagnose when writing tests.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/src/ctdb_test_stubs.c