projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: missing lock/unlock when sending index
[lttng-tools.git]
/
tests
/
unit
/
test_uri.c
diff --git
a/tests/unit/test_uri.c
b/tests/unit/test_uri.c
index 91bd21c5e3213a444279ef695fa1ea7c2fcc715a..ef852c03b5ba218a02bbc2574f78c75601bef9a3 100644
(file)
--- a/
tests/unit/test_uri.c
+++ b/
tests/unit/test_uri.c
@@
-189,10
+189,12
@@
void test_uri_parsing(void)
s_uri1 = "file/my/test/path";
size = uri_parse(s_uri1, &uri);
ok(size == -1, "Bad URI set to file/my/test/path");
s_uri1 = "file/my/test/path";
size = uri_parse(s_uri1, &uri);
ok(size == -1, "Bad URI set to file/my/test/path");
+ assert(!uri);
s_uri1 = "net://:8999";
size = uri_parse(s_uri1, &uri);
ok(size == -1, "Bad URI set to net://:8999");
s_uri1 = "net://:8999";
size = uri_parse(s_uri1, &uri);
ok(size == -1, "Bad URI set to net://:8999");
+ assert(!uri);
}
void test_uri_cmp()
}
void test_uri_cmp()
@@
-252,10
+254,10
@@
void test_uri_cmp()
int main(int argc, char **argv)
{
int main(int argc, char **argv)
{
- diag("URI unit tests");
-
plan_tests(NUM_TESTS);
plan_tests(NUM_TESTS);
+ diag("URI unit tests");
+
test_uri_parsing();
test_uri_cmp();
test_uri_parsing();
test_uri_cmp();
This page took
0.025841 seconds
and
5
git commands to generate.