aboutsummaryrefslogtreecommitdiff
path: root/src/datacache/perf_datacache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/datacache/perf_datacache.c')
-rw-r--r--src/datacache/perf_datacache.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/datacache/perf_datacache.c b/src/datacache/perf_datacache.c
index e2eb474d4f..10efa5eee9 100644
--- a/src/datacache/perf_datacache.c
+++ b/src/datacache/perf_datacache.c
@@ -76,7 +76,12 @@ run (void *cls,
cfg,
"perfcache");
- ASSERT (NULL != h);
+ if (h == NULL)
+ {
+ fprintf (stderr,
+ "Failed to initialize datacache. Database likely not setup, skipping test.\n");
+ return;
+ }
exp = GNUNET_TIME_absolute_get ();
start = exp;
exp.value += 5 * 60 * 1000;