aboutsummaryrefslogtreecommitdiff
path: root/src/datacache/perf_datacache.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-08-14 14:55:23 +0000
committerChristian Grothoff <christian@grothoff.org>2010-08-14 14:55:23 +0000
commit61f84fb3196d86d8980b02acdb0adbccbacf6aa4 (patch)
tree3096a565cf7f409467a41ee7ea69d3c3c5964fec /src/datacache/perf_datacache.c
parent54edcbe9ce37e934a0d045fdde27e9caa3ac145a (diff)
downloadgnunet-61f84fb3196d86d8980b02acdb0adbccbacf6aa4.tar.gz
gnunet-61f84fb3196d86d8980b02acdb0adbccbacf6aa4.zip
tolerate missing DB setup
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 e2eb474d4..10efa5eee 100644
--- a/src/datacache/perf_datacache.c
+++ b/src/datacache/perf_datacache.c
@@ -76,7 +76,12 @@ run (void *cls,
76 cfg, 76 cfg,
77 "perfcache"); 77 "perfcache");
78 78
79 ASSERT (NULL != h); 79 if (h == NULL)
80 {
81 fprintf (stderr,
82 "Failed to initialize datacache. Database likely not setup, skipping test.\n");
83 return;
84 }
80 exp = GNUNET_TIME_absolute_get (); 85 exp = GNUNET_TIME_absolute_get ();
81 start = exp; 86 start = exp;
82 exp.value += 5 * 60 * 1000; 87 exp.value += 5 * 60 * 1000;