summaryrefslogtreecommitdiff
path: root/tests-clar/config/stress.c
diff options
context:
space:
mode:
authorSebastian Bauer <mail@sebastianbauer.info>2013-01-25 06:48:55 +0100
committerSebastian Bauer <mail@sebastianbauer.info>2013-01-25 06:55:56 +0100
commita7f8065f8cd3d635264b3bfdb93cd0c22bb960a4 (patch)
tree9b1b94a44b99e918b0063285c640115b4fdc4659 /tests-clar/config/stress.c
parentc9e9640356f4c56fdb86d3313a5a7dcf282b7391 (diff)
downloadlibgit2-a7f8065f8cd3d635264b3bfdb93cd0c22bb960a4.tar.gz
Use cl_assert_equal_s() instead of strcmp().
Replaced all cl_assert(!strcmp()) or semantically equivalent forms by cl_assert_equal_s().
Diffstat (limited to 'tests-clar/config/stress.c')
-rw-r--r--tests-clar/config/stress.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests-clar/config/stress.c b/tests-clar/config/stress.c
index 317e877f7..2dfa730a0 100644
--- a/tests-clar/config/stress.c
+++ b/tests-clar/config/stress.c
@@ -45,13 +45,13 @@ void test_config_stress__comments(void)
cl_git_pass(git_config_open_ondisk(&config, cl_fixture("config/config12")));
cl_git_pass(git_config_get_string(&str, config, "some.section.other"));
- cl_assert(!strcmp(str, "hello! \" ; ; ; "));
+ cl_assert_equal_s("hello! \" ; ; ; ", str);
cl_git_pass(git_config_get_string(&str, config, "some.section.multi"));
- cl_assert(!strcmp(str, "hi, this is a ; multiline comment # with ;\n special chars and other stuff !@#"));
+ cl_assert_equal_s("hi, this is a ; multiline comment # with ;\n special chars and other stuff !@#", str);
cl_git_pass(git_config_get_string(&str, config, "some.section.back"));
- cl_assert(!strcmp(str, "this is \ba phrase"));
+ cl_assert_equal_s("this is \ba phrase", str);
git_config_free(config);
}
@@ -70,6 +70,6 @@ void test_config_stress__escape_subsection_names(void)
cl_git_pass(git_config_open_ondisk(&config, TEST_CONFIG));
cl_git_pass(git_config_get_string(&str, config, "some.sec\\tion.other"));
- cl_assert(!strcmp("foo", str));
+ cl_assert_equal_s("foo", str);
git_config_free(config);
}