Skip to content
Snippets Groups Projects
Commit b1a88fed authored by Jan Kadlec's avatar Jan Kadlec
Browse files

unittests: check if we have lmdb support.

parent 4de2ab11
Branches
Tags
No related merge requests found
......@@ -20,6 +20,7 @@
#include "libknot/common.h"
#include "common/namedb/namedb.h"
#include "common/namedb/namedb_lmdb.h"
#include "knot/zone/timers.h"
#include "knot/zone/zone.h"
#include "knot/zone/events/events.h"
......@@ -33,6 +34,11 @@ int main(int argc, char *argv[])
{
plan_lazy();
if (namedb_lmdb_api() == NULL) {
// LMDB API not compiled.
return EXIT_SUCCESS;
}
// Temporary DB identifier.
char dbid_buf[] = "/tmp/timerdb.XXXXXX";
const char *dbid = mkdtemp(dbid_buf);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment