#include <common/uri.h>
-/* For lttngerr.h */
+/* For error.h */
int lttng_opt_quiet = 1;
int lttng_opt_verbose = 3;
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()
int main(int argc, char **argv)
{
- diag("URI unit tests");
-
plan_tests(NUM_TESTS);
+ diag("URI unit tests");
+
test_uri_parsing();
test_uri_cmp();