tests: compile all unit tests as C++
authorSimon Marchi <simon.marchi@efficios.com>
Sat, 4 Sep 2021 23:32:47 +0000 (19:32 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 18 Nov 2021 00:13:29 +0000 (19:13 -0500)
Change-Id: I9938237cee13a534d5c52288983238c0871dc504
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/lttng/action/rate-policy-internal.h
include/lttng/kernel-probe-internal.h
tests/unit/Makefile.am
tests/unit/ust-sigbus.c [deleted file]
tests/unit/ust-sigbus.cpp [new file with mode: 0644]

index 2f8267a31ad9b47ad23be80cf597f78d4f19045d..708892cba86b11134cd97f07dcc7167208d690df 100644 (file)
@@ -14,6 +14,7 @@
 #include <lttng/lttng-error.h>
 #include <stdbool.h>
 
+
 #ifdef __cplusplus
 extern "C" {
 #endif
index e0b94749ef777fb297e09492061d29d59fc72e69..87d0ab9aad0cd70be0bb8b2b756367cbd5a48284 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <common/fd-handle.h>
 #include <common/macros.h>
+#include <lttng/lttng-error.h>
 #include <lttng/kernel-probe.h>
 #include <lttng/lttng-error.h>
 #include <stdbool.h>
index a311bc3e4dc7a40b89c8ddb5b056a89f0eda3e38..e555b0149479d30b69cf0d2232e14cb734770fb0 100644 (file)
@@ -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.c
deleted file mode 100644 (file)
index 3b9dd77..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
- * Copyright (C) 2021 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- *
- * SPDX-License-Identifier: GPL-2.0-only
- *
- */
-
-#include <lttng/lttng-export.h>
-#include <lttng/ust-sigbus.h>
-
-LTTNG_EXPORT DEFINE_LTTNG_UST_SIGBUS_STATE();
diff --git a/tests/unit/ust-sigbus.cpp b/tests/unit/ust-sigbus.cpp
new file mode 100644 (file)
index 0000000..3b9dd77
--- /dev/null
@@ -0,0 +1,11 @@
+/*
+ * Copyright (C) 2021 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ *
+ * SPDX-License-Identifier: GPL-2.0-only
+ *
+ */
+
+#include <lttng/lttng-export.h>
+#include <lttng/ust-sigbus.h>
+
+LTTNG_EXPORT DEFINE_LTTNG_UST_SIGBUS_STATE();
This page took 0.027096 seconds and 4 git commands to generate.