projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests: fix: leak of rate policy in rate policy unit tests
[lttng-tools.git]
/
tests
/
unit
/
test_ust_data.cpp
diff --git
a/tests/unit/test_ust_data.cpp
b/tests/unit/test_ust_data.cpp
index 9cfdac4f31c08473d82ae10ad206dc2c28577191..cdd9cbd66dd033a3e6b60486562a6107a6722c4f 100644
(file)
--- a/
tests/unit/test_ust_data.cpp
+++ b/
tests/unit/test_ust_data.cpp
@@
-77,6
+77,7
@@
static void test_create_one_ust_session(void)
"Validate UST session");
trace_ust_destroy_session(usess);
"Validate UST session");
trace_ust_destroy_session(usess);
+ trace_ust_free_session(usess);
}
static void test_create_ust_channel(void)
}
static void test_create_ust_channel(void)
@@
-165,7
+166,7
@@
static void test_create_ust_event_exclusion(void)
ev.loglevel_type = LTTNG_EVENT_LOGLEVEL_ALL;
/* set up an exclusion set */
ev.loglevel_type = LTTNG_EVENT_LOGLEVEL_ALL;
/* set up an exclusion set */
- exclusion =
(lttng_event_exclusion *) zmalloc
(sizeof(*exclusion) +
+ exclusion =
zmalloc<lttng_event_exclusion>
(sizeof(*exclusion) +
LTTNG_SYMBOL_NAME_LEN * exclusion_count);
ok(exclusion != NULL, "Create UST exclusion");
if (!exclusion) {
LTTNG_SYMBOL_NAME_LEN * exclusion_count);
ok(exclusion != NULL, "Create UST exclusion");
if (!exclusion) {
@@
-185,7
+186,7
@@
static void test_create_ust_event_exclusion(void)
ok(ret != LTTNG_OK, "Create UST event with identical exclusion names fails");
ok(ret != LTTNG_OK, "Create UST event with identical exclusion names fails");
- exclusion =
(lttng_event_exclusion *) zmalloc
(sizeof(*exclusion) +
+ exclusion =
zmalloc<lttng_event_exclusion>
(sizeof(*exclusion) +
LTTNG_SYMBOL_NAME_LEN * exclusion_count);
ok(exclusion != NULL, "Create UST exclusion");
if (!exclusion) {
LTTNG_SYMBOL_NAME_LEN * exclusion_count);
ok(exclusion != NULL, "Create UST exclusion");
if (!exclusion) {
@@
-193,7
+194,7
@@
static void test_create_ust_event_exclusion(void)
goto end;
}
goto end;
}
- exclusion_copy =
(lttng_event_exclusion *) zmalloc
(sizeof(*exclusion) +
+ exclusion_copy =
zmalloc<lttng_event_exclusion>
(sizeof(*exclusion) +
LTTNG_SYMBOL_NAME_LEN * exclusion_count);
if (!exclusion_copy) {
skip(2, "zmalloc failed");
LTTNG_SYMBOL_NAME_LEN * exclusion_count);
if (!exclusion_copy) {
skip(2, "zmalloc failed");
This page took
0.023732 seconds
and
4
git commands to generate.