summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2018-07-05 13:40:33 +1000
committerKarolin Seeger <kseeger@samba.org>2018-07-10 15:09:24 +0200
commitb5d333c26484cff8f933ba8389e46514ea501282 (patch)
treeff092e5829fc453bfeff333fd2a2110e74036d0c /ctdb
parenta19d52e6c827b78d3883d37fcdaa76013e5c3177 (diff)
downloadsamba-b5d333c26484cff8f933ba8389e46514ea501282.tar.gz
ctdb-tests: Avoid segfault by initializing logging
This is in addition to af697008531. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Thu Jul 5 15:22:16 CEST 2018 on sn-devel-144 (cherry picked from commit a30ac853ff9bca023c53ad98775eabb23156c566) Autobuild-User(v4-8-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-8-test): Tue Jul 10 15:09:25 CEST 2018 on sn-devel-144
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/tests/src/ctdb_takeover_tests.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ctdb/tests/src/ctdb_takeover_tests.c b/ctdb/tests/src/ctdb_takeover_tests.c
index a0e2f0fe4fa..aec23c0a551 100644
--- a/ctdb/tests/src/ctdb_takeover_tests.c
+++ b/ctdb/tests/src/ctdb_takeover_tests.c
@@ -254,6 +254,8 @@ int main(int argc, const char *argv[])
int loglevel;
const char *debuglevelstr = getenv("CTDB_TEST_LOGLEVEL");
+ setup_logging("ctdb_takeover_tests", DEBUG_STDERR);
+
if (! debug_level_parse(debuglevelstr, &loglevel)) {
loglevel = DEBUG_DEBUG;
}