From 488dbb6062973d4990a33284e4717d89a893339d Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sat, 4 Sep 2021 19:32:47 -0400 Subject: [PATCH] tests: compile all unit tests as C++ MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I9938237cee13a534d5c52288983238c0871dc504 Signed-off-by: Simon Marchi Signed-off-by: Jérémie Galarneau --- include/lttng/action/rate-policy-internal.h | 1 + include/lttng/kernel-probe-internal.h | 1 + tests/unit/Makefile.am | 2 +- tests/unit/{ust-sigbus.c => ust-sigbus.cpp} | 0 4 files changed, 3 insertions(+), 1 deletion(-) rename tests/unit/{ust-sigbus.c => ust-sigbus.cpp} (100%) diff --git a/include/lttng/action/rate-policy-internal.h b/include/lttng/action/rate-policy-internal.h index 2f8267a31..708892cba 100644 --- a/include/lttng/action/rate-policy-internal.h +++ b/include/lttng/action/rate-policy-internal.h @@ -14,6 +14,7 @@ #include #include + #ifdef __cplusplus extern "C" { #endif diff --git a/include/lttng/kernel-probe-internal.h b/include/lttng/kernel-probe-internal.h index e0b94749e..87d0ab9aa 100644 --- a/include/lttng/kernel-probe-internal.h +++ b/include/lttng/kernel-probe-internal.h @@ -10,6 +10,7 @@ #include #include +#include #include #include #include diff --git a/tests/unit/Makefile.am b/tests/unit/Makefile.am index a311bc3e4..e555b0149 100644 --- a/tests/unit/Makefile.am +++ b/tests/unit/Makefile.am @@ -87,7 +87,7 @@ test_session_SOURCES = test_session.cpp test_session_LDADD = $(LIBTAP) $(LIBLTTNG_SESSIOND_COMMON) $(DL_LIBS) if HAVE_LIBLTTNG_UST_CTL -test_session_SOURCES += ust-sigbus.c +test_session_SOURCES += ust-sigbus.cpp test_session_LDADD += $(UST_CTL_LIBS) endif diff --git a/tests/unit/ust-sigbus.c b/tests/unit/ust-sigbus.cpp similarity index 100% rename from tests/unit/ust-sigbus.c rename to tests/unit/ust-sigbus.cpp -- 2.34.1