Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests-clar/config/new.c')
-rw-r--r--tests-clar/config/new.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests-clar/config/new.c b/tests-clar/config/new.c
index 96aed2bb3..fae3ce941 100644
--- a/tests-clar/config/new.c
+++ b/tests-clar/config/new.c
@@ -25,10 +25,10 @@ void test_config_new__write_new_config(void)
cl_git_pass(git_config_new(&config));
cl_git_pass(git_config_add_file(config, file, 0));
- cl_git_pass(git_config_get_string(config, "color.ui", &out));
- cl_assert(strcmp(out, "auto") == 0);
- cl_git_pass(git_config_get_string(config, "core.editor", &out));
- cl_assert(strcmp(out, "ed") == 0);
+ cl_git_pass(git_config_get_string(&out, config, "color.ui"));
+ cl_assert_equal_s(out, "auto");
+ cl_git_pass(git_config_get_string(&out, config, "core.editor"));
+ cl_assert_equal_s(out, "ed");
git_config_free(config);