X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Funit%2Ftest_uri.c;h=cd95753960006eb301ce440c88a0a042d557d607;hb=ce19b9ed9bd9591bd0c4d1998780082a490991fd;hp=7cac95d98e099a567a9a2f2f68bf0697ef688b5e;hpb=ad7c9c188f0e6336577ccdc7e6e0aea409a88a9d;p=lttng-tools.git diff --git a/tests/unit/test_uri.c b/tests/unit/test_uri.c index 7cac95d98..cd9575396 100644 --- a/tests/unit/test_uri.c +++ b/tests/unit/test_uri.c @@ -25,6 +25,7 @@ /* 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 @@ -107,7 +108,7 @@ void test_uri_parsing(void) uri = NULL; } - s_uri1 = "net6://localhost:8989"; + s_uri1 = "net6://[::1]:8989"; size = uri_parse(s_uri1, &uri); @@ -124,7 +125,7 @@ void test_uri_parsing(void) uri[1].port == 0 && strlen(uri[1].subdir) == 0 && strcmp(uri[0].dst.ipv6, "::1") == 0, - "URI set to net6://localhost:8989"); + "URI set to net6://[::1]:8989"); if (uri) { uri_free(uri);