/*
- * Copyright (C) 2011 David Goulet <david.goulet@polymtl.ca>
+ * Copyright (C) 2011 EfficiOS Inc.
*
* SPDX-License-Identifier: GPL-2.0-only
*
#include <bin/lttng-sessiond/ust-app.h>
#include <bin/lttng-sessiond/notification-thread.h>
+#include <lttng/ust-sigbus.h>
+
#include <tap/tap.h>
/* This path will NEVER be created in this test */
/* Number of TAP tests in this file */
#define NUM_TESTS 16
-/* For error.h */
-int lttng_opt_quiet = 1;
-int lttng_opt_verbose;
-int lttng_opt_mi;
+DEFINE_LTTNG_UST_SIGBUS_STATE();
static const char alphanum[] =
"0123456789"
"Validate UST session");
trace_ust_destroy_session(usess);
+ trace_ust_free_session(usess);
}
static void test_create_ust_channel(void)
exclusion->count = exclusion_count;
random_name = get_random_string();
strncpy(LTTNG_EVENT_EXCLUSION_NAME_AT(exclusion, 0), random_name,
- LTTNG_SYMBOL_NAME_LEN);
+ LTTNG_SYMBOL_NAME_LEN - 1);
strncpy(LTTNG_EVENT_EXCLUSION_NAME_AT(exclusion, 1), random_name,
- LTTNG_SYMBOL_NAME_LEN);
+ LTTNG_SYMBOL_NAME_LEN - 1);
ret = trace_ust_create_event(&ev, NULL, NULL, exclusion, false, &event);
exclusion = NULL;
exclusion->count = exclusion_count;
strncpy(LTTNG_EVENT_EXCLUSION_NAME_AT(exclusion, 0),
- get_random_string(), LTTNG_SYMBOL_NAME_LEN);
+ get_random_string(), LTTNG_SYMBOL_NAME_LEN - 1);
strncpy(LTTNG_EVENT_EXCLUSION_NAME_AT(exclusion, 1),
- get_random_string(), LTTNG_SYMBOL_NAME_LEN);
+ get_random_string(), LTTNG_SYMBOL_NAME_LEN - 1);
exclusion_copy->count = exclusion_count;
strncpy(LTTNG_EVENT_EXCLUSION_NAME_AT(exclusion_copy, 0),