From 6829e73627240850b3b45df2fdf3e5aa2cbbcc50 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 23 Mar 2020 13:01:29 +0100 Subject: [PATCH] torture3: Fix the local-dbwrap-ctdb test We need to O_CREAT the database when connecting Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- source3/torture/test_dbwrap_ctdb.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/source3/torture/test_dbwrap_ctdb.c b/source3/torture/test_dbwrap_ctdb.c index eddcdf11290..d147e8c5cfd 100644 --- a/source3/torture/test_dbwrap_ctdb.c +++ b/source3/torture/test_dbwrap_ctdb.c @@ -36,9 +36,16 @@ bool run_local_dbwrap_ctdb(int dummy) msg_ctx = global_messaging_context(); - db = db_open_ctdb(talloc_tos(), msg_ctx, "torture.tdb", - 0, TDB_DEFAULT, - O_RDWR, 0755, DBWRAP_LOCK_ORDER_1, DBWRAP_FLAG_NONE); + db = db_open_ctdb( + talloc_tos(), + msg_ctx, + "torture.tdb", + 0, + TDB_DEFAULT, + O_RDWR|O_CREAT, + 0755, + DBWRAP_LOCK_ORDER_1, + DBWRAP_FLAG_NONE); if (db == NULL) { perror("db_open_ctdb failed"); goto fail; -- 2.47.3