#include <bin/lttng-sessiond/ust-app.hpp>
#include <common/common.hpp>
#include <common/compat/errno.hpp>
+#include <common/make-unique.hpp>
#include <common/sessiond-comm/sessiond-comm.hpp>
#include <tap/tap.h>
int ret;
enum lttng_error_code ret_code;
struct ltt_session *session = NULL;
+ lttng::trace_format_descriptor::uptr trace_format_descriptor =
+ lttng::make_unique<lttng::trace_format_descriptor_ctf1>();
session_lock_list();
- ret_code = session_create(name, geteuid(), getegid(), &session);
+ ret_code = session_create(name, geteuid(), getegid(), trace_format_descriptor, &session);
session_put(session);
if (ret_code == LTTNG_OK) {
/* Validate */
ret = find_session_name(session_name);
if (ret < 0) {
- /* Success, -1 means that the sesion is NOT found */
+ /* Success, -1 means that the session is NOT found */
ret = 0;
} else {
/* Fail */
struct ltt_session *session = NULL;
enum lttng_error_code ret_code;
const char *expected_session_name_prefix = DEFAULT_SESSION_NAME;
+ lttng::trace_format_descriptor::uptr trace_format_descriptor =
+ lttng::make_unique<lttng::trace_format_descriptor_ctf1>();
session_lock_list();
- ret_code = session_create(NULL, geteuid(), getegid(), &session);
+ ret_code = session_create(NULL, geteuid(), getegid(), trace_format_descriptor, &session);
ok(ret_code == LTTNG_OK,
"Create session with a NULL name (auto-generate a name)");
if (!session) {