From c104c0a485cc8b6aee7febc1f1bb90395cd9173d Mon Sep 17 00:00:00 2001 From: Cole Miller Date: Mon, 29 Apr 2024 10:39:44 +0100 Subject: [PATCH] Enable tracing for raft tests Signed-off-by: Cole Miller --- Makefile.am | 1 + test/raft/lib/runner.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Makefile.am b/Makefile.am index 6e3e5c345..c14e564a7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -282,6 +282,7 @@ raft_core_fuzzy_test_LDFLAGS = -no-install raft_core_fuzzy_test_LDADD = libtest.la libraft.la raft_uv_unit_test_SOURCES = \ + src/tracing.c \ src/raft/err.c \ src/raft/heap.c \ src/raft/syscall.c \ diff --git a/test/raft/lib/runner.h b/test/raft/lib/runner.h index 13244a33a..3c4c22207 100644 --- a/test/raft/lib/runner.h +++ b/test/raft/lib/runner.h @@ -4,6 +4,7 @@ #define TEST_RUNNER_H_ #include "munit.h" +#include "../../../src/tracing.h" /* Top-level suites array declaration. * @@ -24,6 +25,7 @@ extern int _main_suites_n; int main(int argc, char *argv[MUNIT_ARRAY_PARAM(argc)]) \ { \ MunitSuite suite = {(char *)"", NULL, _main_suites, 1, 0}; \ + dqliteTracingMaybeEnable(true); \ return munit_suite_main(&suite, (void *)NAME, argc, argv); \ }