X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Funit%2Ftest_uri.c;h=ef852c03b5ba218a02bbc2574f78c75601bef9a3;hb=6dc3064a30b0cc7cfa9fdd22da1963525dfb7388;hp=91bd21c5e3213a444279ef695fa1ea7c2fcc715a;hpb=5d2e1e66a968d9e555f9b8b00d0589ebfaf3de32;p=lttng-tools.git diff --git a/tests/unit/test_uri.c b/tests/unit/test_uri.c index 91bd21c5e..ef852c03b 100644 --- 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"); + 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 +254,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();