X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Funit%2Ftest_uri.c;h=432e2b3fcea1ed72775d2ae8d986c0eb9527c139;hp=91bd21c5e3213a444279ef695fa1ea7c2fcc715a;hb=c7e35b037773dbbfe10178c946ba44feefb226e1;hpb=c291fb2471e426538866ae907a6c6ed7e5711e81 diff --git a/tests/unit/test_uri.c b/tests/unit/test_uri.c index 91bd21c5e..432e2b3fc 100644 --- a/tests/unit/test_uri.c +++ b/tests/unit/test_uri.c @@ -22,9 +22,10 @@ #include -/* For lttngerr.h */ +/* For error.h */ int lttng_opt_quiet = 1; int lttng_opt_verbose = 3; +int lttng_opt_mi; /* Number of TAP tests in this file */ #define NUM_TESTS 11 @@ -189,10 +190,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"); + assert(!uri); 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() @@ -252,10 +255,10 @@ void test_uri_cmp() int main(int argc, char **argv) { - diag("URI unit tests"); - plan_tests(NUM_TESTS); + diag("URI unit tests"); + test_uri_parsing(); test_uri_cmp();