projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor: test: wrapper for create_lttng_session
[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 bc3154c288662f149e0409361392239d10fd85f1..6df66acbe6ee9e6d6f1ffe5fc083885e673893f9 100644
(file)
--- a/
tests/unit/test_ust_data.c
+++ b/
tests/unit/test_ust_data.c
@@
-39,11
+39,12
@@
#define RANDOM_STRING_LEN 11
/* Number of TAP tests in this file */
#define RANDOM_STRING_LEN 11
/* Number of TAP tests in this file */
-#define NUM_TESTS 1
0
+#define NUM_TESTS 1
1
/* For error.h */
int lttng_opt_quiet = 1;
int lttng_opt_verbose;
/* For error.h */
int lttng_opt_quiet = 1;
int lttng_opt_verbose;
+int lttng_opt_mi;
int ust_consumerd32_fd;
int ust_consumerd64_fd;
int ust_consumerd32_fd;
int ust_consumerd64_fd;
@@
-82,7
+83,7
@@
static void test_create_one_ust_session(void)
ok(usess != NULL, "Create UST session");
ok(usess->id == 42 &&
ok(usess != NULL, "Create UST session");
ok(usess->id == 42 &&
- usess->
start_trac
e == 0 &&
+ usess->
activ
e == 0 &&
usess->domain_global.channels != NULL &&
usess->uid == 0 &&
usess->gid == 0,
usess->domain_global.channels != NULL &&
usess->uid == 0 &&
usess->gid == 0,
@@
-156,6
+157,12
@@
static void test_create_ust_event_exclusion(void)
/* set up an exclusion set */
exclusion = zmalloc(sizeof(*exclusion) + LTTNG_SYMBOL_NAME_LEN);
/* set up an exclusion set */
exclusion = zmalloc(sizeof(*exclusion) + LTTNG_SYMBOL_NAME_LEN);
+ if (!exclusion) {
+ PERROR("zmalloc");
+ }
+
+ ok(exclusion != NULL, "Create UST exclusion");
+
exclusion->count = 1;
strncpy((char *)(exclusion->names), get_random_string(), LTTNG_SYMBOL_NAME_LEN);
exclusion->count = 1;
strncpy((char *)(exclusion->names), get_random_string(), LTTNG_SYMBOL_NAME_LEN);
This page took
0.023481 seconds
and
4
git commands to generate.