#include <tap/tap.h>
#include <common/utils.h>
+#include <common/path.h>
#include <common/common.h>
/* For error.h */
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);
}
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);
}
if (result != NULL) {
free(result);
}
- ok(result == NULL, name);
+ ok(result == NULL, "%s", name);
}
}
-int main(int argc, char **argv)
+int main(void)
{
if (prepare_symlink_tree() != 0) {
goto error_mkdir;