X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Funit%2Ftest_fd_tracker.c;h=94f54769d18b4f6c1fbf4c591d3c71ffe1d3598b;hp=fe14e9c5cf26417972a964c2747c9d9c9fb10d9d;hb=c13428b1e67e3dfe64866ee488f16f45522f17b6;hpb=e0efb2c893443a33b724cf79afb963cfb4ac87f7 diff --git a/tests/unit/test_fd_tracker.c b/tests/unit/test_fd_tracker.c index fe14e9c5c..94f54769d 100644 --- a/tests/unit/test_fd_tracker.c +++ b/tests/unit/test_fd_tracker.c @@ -666,7 +666,7 @@ void test_unlink(void) char tmp_path_pattern[] = TMP_DIR_PATTERN; const char *output_dir; struct fs_handle *handles[handles_to_open]; - struct fs_handle *new_handle; + struct fs_handle *new_handle = NULL; char *file_path; char *unlinked_file_path; char *unlinked_file_path_suffix; @@ -700,7 +700,8 @@ void test_unlink(void) /* Open two handles to the same file. */ ret = open_same_file(tracker, file_path, handles_to_open, handles); - ok(!ret, "Successfully %i handles to %s", handles_to_open); + ok(!ret, "Successfully opened %i handles to %s", handles_to_open, + file_path); if (ret) { return; }