X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Funit%2Ftest_uri.c;h=432e2b3fcea1ed72775d2ae8d986c0eb9527c139;hp=ba0baf9b6e03b0f1f84ef4d763751b3943a7aa95;hb=c7e35b037773dbbfe10178c946ba44feefb226e1;hpb=e3bef7256ce348cf232ede3f36721e661cfda2a7 diff --git a/tests/unit/test_uri.c b/tests/unit/test_uri.c index ba0baf9b6..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()