projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add error check for zmalloc
[lttng-tools.git]
/
tests
/
unit
/
test_ust_data.c
diff --git
a/tests/unit/test_ust_data.c
b/tests/unit/test_ust_data.c
index c79dbf6f4001a0a20a0a3ba0c3b479d7b9053e96..7c48c5cb35637e5017add8ed6e876dacd5f75c0e 100644
(file)
--- a/
tests/unit/test_ust_data.c
+++ b/
tests/unit/test_ust_data.c
@@
-33,8
+33,6
@@
#include <tap/tap.h>
#include <tap/tap.h>
-#include "utils.h"
-
/* This path will NEVER be created in this test */
#define PATH1 "/tmp/.test-junk-lttng"
/* This path will NEVER be created in this test */
#define PATH1 "/tmp/.test-junk-lttng"
@@
-153,7
+151,7
@@
static void test_create_ust_event(void)
ev.type = LTTNG_EVENT_TRACEPOINT;
ev.loglevel_type = LTTNG_EVENT_LOGLEVEL_ALL;
ev.type = LTTNG_EVENT_TRACEPOINT;
ev.loglevel_type = LTTNG_EVENT_LOGLEVEL_ALL;
- event = trace_ust_create_event(&ev, NULL);
+ event = trace_ust_create_event(&ev, NULL
, NULL
);
ok(event != NULL, "Create UST event");
ok(event != NULL, "Create UST event");
@@
-178,6
+176,7
@@
static void test_create_ust_context(void)
ok((int) uctx->ctx.ctx == LTTNG_UST_CONTEXT_VTID,
"Validate UST context");
ok((int) uctx->ctx.ctx == LTTNG_UST_CONTEXT_VTID,
"Validate UST context");
+ free(uctx);
}
int main(int argc, char **argv)
}
int main(int argc, char **argv)
This page took
0.02775 seconds
and
4
git commands to generate.