projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extend API and remove lttng_uri from lttng.h
[lttng-tools.git]
/
tests
/
tools
/
streaming
/
unit_tests.c
diff --git
a/tests/tools/streaming/unit_tests.c
b/tests/tools/streaming/unit_tests.c
index 6fea139c30f61415920575cbc0ef8f3aa10fda40..915e7d1adc74f7ff25d6717bb6624b5b79218f94 100644
(file)
--- a/
tests/tools/streaming/unit_tests.c
+++ b/
tests/tools/streaming/unit_tests.c
@@
-37,7
+37,7
@@
/* For lttngerr.h */
int lttng_opt_quiet = 1;
/* For lttngerr.h */
int lttng_opt_quiet = 1;
-int lttng_opt_verbose =
0
;
+int lttng_opt_verbose =
3
;
/*
* Test string URI and if uri_parse works well.
/*
* Test string URI and if uri_parse works well.
@@
-138,7
+138,7
@@
int test_uri(void)
assert(strcmp(uri[0].dst.ipv4, "42.42.42.42") == 0);
PRINT_OK();
assert(strcmp(uri[0].dst.ipv4, "42.42.42.42") == 0);
PRINT_OK();
- s_uri1 = "tcp6://
fe80::f66d:4ff:fe53:d220
/my/test/path";
+ s_uri1 = "tcp6://
[fe80::f66d:4ff:fe53:d220]
/my/test/path";
fprintf(stdout, " [+] URI set to %s ", s_uri1);
size = uri_parse(s_uri1, &uri);
assert(size == 1);
fprintf(stdout, " [+] URI set to %s ", s_uri1);
size = uri_parse(s_uri1, &uri);
assert(size == 1);
@@
-174,12
+174,6
@@
int test_uri(void)
assert(size == -1);
PRINT_OK();
assert(size == -1);
PRINT_OK();
- s_uri1 = "net://localhost/";
- fprintf(stdout, " [+] Bad URI set to %s ", s_uri1);
- size = uri_parse(s_uri1, &uri);
- assert(size == -1);
- PRINT_OK();
-
return 0;
}
return 0;
}
This page took
0.023828 seconds
and
4
git commands to generate.