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:
authorSebastian Bauer <mail@sebastianbauer.info>2013-01-25 09:48:55 +0400
committerSebastian Bauer <mail@sebastianbauer.info>2013-01-25 09:55:56 +0400
commita7f8065f8cd3d635264b3bfdb93cd0c22bb960a4 (patch)
tree9b1b94a44b99e918b0063285c640115b4fdc4659 /tests-clar/fetchhead
parentc9e9640356f4c56fdb86d3313a5a7dcf282b7391 (diff)
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/fetchhead')
-rw-r--r--tests-clar/fetchhead/nonetwork.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests-clar/fetchhead/nonetwork.c b/tests-clar/fetchhead/nonetwork.c
index 6ffc6ea2f..b8cb69e68 100644
--- a/tests-clar/fetchhead/nonetwork.c
+++ b/tests-clar/fetchhead/nonetwork.c
@@ -124,12 +124,12 @@ static int fetchhead_ref_cb(const char *name, const char *url,
cl_assert(expected->is_merge == is_merge);
if (expected->ref_name)
- cl_assert(strcmp(expected->ref_name, name) == 0);
+ cl_assert_equal_s(expected->ref_name, name);
else
cl_assert(name == NULL);
if (expected->remote_url)
- cl_assert(strcmp(expected->remote_url, url) == 0);
+ cl_assert_equal_s(expected->remote_url, url);
else
cl_assert(url == NULL);
@@ -199,8 +199,8 @@ static int read_type_missing(const char *ref_name, const char *remote_url,
git_oid_fromstr(&expected, "49322bb17d3acc9146f98c97d078513228bbf3c0");
- cl_assert(strcmp(ref_name, "name") == 0);
- cl_assert(strcmp(remote_url, "remote_url") == 0);
+ cl_assert_equal_s("name", ref_name);
+ cl_assert_equal_s("remote_url", remote_url);
cl_assert(git_oid_cmp(&expected, oid) == 0);
cl_assert(is_merge == 0);
@@ -227,7 +227,7 @@ static int read_name_missing(const char *ref_name, const char *remote_url,
git_oid_fromstr(&expected, "49322bb17d3acc9146f98c97d078513228bbf3c0");
cl_assert(ref_name == NULL);
- cl_assert(strcmp(remote_url, "remote_url") == 0);
+ cl_assert_equal_s("remote_url", remote_url);
cl_assert(git_oid_cmp(&expected, oid) == 0);
cl_assert(is_merge == 0);