summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorStelios Fragkakis <52996999+stelfrag@users.noreply.github.com>2022-08-02 18:38:42 +0300
committerGitHub <noreply@github.com>2022-08-02 18:38:42 +0300
commite3f1535053a2a556d9651ac9bb24d69282592b90 (patch)
tree86bae97b7c7b6c55a1ffb5349a655e4b049530d4 /daemon
parent6d2fd8886124fe64534636f2c1093bd19a06701b (diff)
Fix tests so that the actual metadata database is not accessed (#13439)
* Add simple ctx_unittest under -W unittest * Skip un needed initialization if running unittests -- make sure the context database is initialized in memory mode * Remove tests (no metadata is available at this point)
Diffstat (limited to 'daemon')
-rw-r--r--daemon/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon/main.c b/daemon/main.c
index a2317c1b72..ada3c14f2a 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -1008,6 +1008,8 @@ int main(int argc, char **argv) {
return 1;
if (rrdlabels_unittest())
return 1;
+ if (ctx_unittest())
+ return 1;
fprintf(stderr, "\n\nALL TESTS PASSED\n\n");
return 0;
}