*
*/
-#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <common/compat/errno.h>
#include <bin/lttng-sessiond/trace-kernel.h>
#include <common/defaults.h>
-#include <lttng/ust-sigbus.h>
#include <tap/tap.h>
/* Number of TAP tests in this file */
#define NUM_TESTS 11
+#ifdef HAVE_LIBLTTNG_UST_CTL
+#include <lttng/ust-sigbus.h>
DEFINE_LTTNG_UST_SIGBUS_STATE();
+#endif
static const char alphanum[] =
"0123456789"
static void test_create_kernel_metadata(void)
{
- assert(kern != NULL);
+ LTTNG_ASSERT(kern != NULL);
kern->metadata = trace_kernel_create_metadata();
ok(kern->metadata != NULL, "Create kernel metadata");