projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set hidden visibility for calls used in lttng-ctl
[lttng-tools.git]
/
tests
/
tools
/
test_sessions.c
diff --git
a/tests/tools/test_sessions.c
b/tests/tools/test_sessions.c
index cd8003dda5b17342e98c614232ec062989d3e9ff..efe19ecdc08cd516aff7426277e21bef11eb7c88 100644
(file)
--- a/
tests/tools/test_sessions.c
+++ b/
tests/tools/test_sessions.c
@@
-28,6
+28,7
@@
#include <bin/lttng-sessiond/session.h>
#include <common/sessiond-comm/sessiond-comm.h>
#include <bin/lttng-sessiond/session.h>
#include <common/sessiond-comm/sessiond-comm.h>
+#include <common/common.h>
#include "utils.h"
#include "utils.h"
@@
-132,7
+133,7
@@
static int create_one_session(char *name, char *path)
int ret;
ret = session_create(name, path, geteuid(), getegid());
int ret;
ret = session_create(name, path, geteuid(), getegid());
- if (ret == LTT
COMM
_OK) {
+ if (ret == LTT
NG
_OK) {
/* Validate */
ret = find_session_name(name);
if (ret < 0) {
/* Validate */
ret = find_session_name(name);
if (ret < 0) {
@@
-144,7
+145,7
@@
static int create_one_session(char *name, char *path)
return 0;
}
} else {
return 0;
}
} else {
- if (ret == LTT
COMM
_EXIST_SESS) {
+ if (ret == LTT
NG_ERR
_EXIST_SESS) {
printf("(session already exists) ");
}
return -1;
printf("(session already exists) ");
}
return -1;
@@
-162,7
+163,7
@@
static int destroy_one_session(struct ltt_session *session)
ret = session_destroy(session);
ret = session_destroy(session);
- if (ret == LTT
COMM
_OK) {
+ if (ret == LTT
NG
_OK) {
/* Validate */
if (session == NULL) {
return 0;
/* Validate */
if (session == NULL) {
return 0;
This page took
0.024327 seconds
and
4
git commands to generate.