X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Funit%2Ftest_utils_expand_path.cpp;h=85c8a54282fc947aa7591c4476368fef62032d3b;hb=9f4a25d35d037cbb5d8aeb50f9e8fa10748a4d14;hp=428acad2285191827a65232ce6bf1bc6e7e94bf7;hpb=8346beb68a50caf0b63edaca526250c0068f66d3;p=lttng-tools.git diff --git a/tests/unit/test_utils_expand_path.cpp b/tests/unit/test_utils_expand_path.cpp index 428acad22..85c8a5428 100644 --- a/tests/unit/test_utils_expand_path.cpp +++ b/tests/unit/test_utils_expand_path.cpp @@ -271,7 +271,7 @@ static void test_utils_expand_path(void) result = utils_expand_path(valid_tests_inputs[i].input); ok(result != NULL && - strcmp(result, valid_tests_expected_results[i]) == 0, name); + strcmp(result, valid_tests_expected_results[i]) == 0, "%s", name); free(result); } @@ -301,12 +301,12 @@ static void test_utils_expand_path(void) PRINT_ERR("truncation occurred while concatenating paths \"%s\" and \"%s\"", real_tree_origin, symlink_tests_inputs[i].input); - fail(name); + fail("%s", name); continue; } result = utils_expand_path(tmppath); ok(result != NULL && strcmp(result + treelen, - symlink_tests_inputs[i].expected_result) == 0, name); + symlink_tests_inputs[i].expected_result) == 0, "%s", name); free(result); } @@ -322,7 +322,7 @@ static void test_utils_expand_path(void) if (result != NULL) { free(result); } - ok(result == NULL, name); + ok(result == NULL, "%s", name); } }