summaryrefslogtreecommitdiff
path: root/tests-clar/network/remotes.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/network/remotes.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/network/remotes.c')
-rw-r--r--tests-clar/network/remotes.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests-clar/network/remotes.c b/tests-clar/network/remotes.c
index 9be18baea..117240379 100644
--- a/tests-clar/network/remotes.c
+++ b/tests-clar/network/remotes.c
@@ -257,9 +257,9 @@ void test_network_remotes__add(void)
cl_git_pass(git_remote_load(&_remote, _repo, "addtest"));
_refspec = git_remote_fetchspec(_remote);
- cl_assert(!strcmp(git_refspec_src(_refspec), "refs/heads/*"));
+ cl_assert_equal_s("refs/heads/*", git_refspec_src(_refspec));
cl_assert(git_refspec_force(_refspec) == 1);
- cl_assert(!strcmp(git_refspec_dst(_refspec), "refs/remotes/addtest/*"));
+ cl_assert_equal_s("refs/remotes/addtest/*", git_refspec_dst(_refspec));
cl_assert_equal_s(git_remote_url(_remote), "http://github.com/libgit2/libgit2");
}
@@ -309,12 +309,12 @@ void test_network_remotes__tagopt(void)
git_remote_set_autotag(_remote, GIT_REMOTE_DOWNLOAD_TAGS_ALL);
cl_git_pass(git_remote_save(_remote));
cl_git_pass(git_config_get_string(&opt, cfg, "remote.test.tagopt"));
- cl_assert(!strcmp(opt, "--tags"));
+ cl_assert_equal_s("--tags", opt);
git_remote_set_autotag(_remote, GIT_REMOTE_DOWNLOAD_TAGS_NONE);
cl_git_pass(git_remote_save(_remote));
cl_git_pass(git_config_get_string(&opt, cfg, "remote.test.tagopt"));
- cl_assert(!strcmp(opt, "--no-tags"));
+ cl_assert_equal_s("--no-tags", opt);
git_remote_set_autotag(_remote, GIT_REMOTE_DOWNLOAD_TAGS_AUTO);
cl_git_pass(git_remote_save(_remote));