Comments fix: lttngerr.h -> error.h (./Changelog:754)
[lttng-tools.git] / tests / unit / test_uri.c
index 91bd21c5e3213a444279ef695fa1ea7c2fcc715a..7cac95d98e099a567a9a2f2f68bf0697ef688b5e 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <common/uri.h>
 
-/* For lttngerr.h */
+/* For error.h */
 int lttng_opt_quiet = 1;
 int lttng_opt_verbose = 3;
 
@@ -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();
This page took 0.024153 seconds and 4 git commands to generate.