X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Ftools%2Fstreaming%2Funit_tests.c;fp=tests%2Ftools%2Fstreaming%2Funit_tests.c;h=915e7d1adc74f7ff25d6717bb6624b5b79218f94;hp=6fea139c30f61415920575cbc0ef8f3aa10fda40;hb=a4b92340642035d1eafeb1eead0ad01f64d2007d;hpb=eb4a2943f0cf59f2f33627c4fa6ed79300119328 diff --git a/tests/tools/streaming/unit_tests.c b/tests/tools/streaming/unit_tests.c index 6fea139c3..915e7d1ad 100644 --- a/tests/tools/streaming/unit_tests.c +++ b/tests/tools/streaming/unit_tests.c @@ -37,7 +37,7 @@ /* For lttngerr.h */ int lttng_opt_quiet = 1; -int lttng_opt_verbose = 0; +int lttng_opt_verbose = 3; /* * Test string URI and if uri_parse works well. @@ -138,7 +138,7 @@ int test_uri(void) assert(strcmp(uri[0].dst.ipv4, "42.42.42.42") == 0); PRINT_OK(); - s_uri1 = "tcp6://fe80::f66d:4ff:fe53:d220/my/test/path"; + s_uri1 = "tcp6://[fe80::f66d:4ff:fe53:d220]/my/test/path"; fprintf(stdout, " [+] URI set to %s ", s_uri1); size = uri_parse(s_uri1, &uri); assert(size == 1); @@ -174,12 +174,6 @@ int test_uri(void) assert(size == -1); PRINT_OK(); - s_uri1 = "net://localhost/"; - fprintf(stdout, " [+] Bad URI set to %s ", s_uri1); - size = uri_parse(s_uri1, &uri); - assert(size == -1); - PRINT_OK(); - return 0; }