diff options
| author | Vicent Martà <vicent@github.com> | 2013-01-25 20:37:39 -0800 |
|---|---|---|
| committer | Vicent Martà <vicent@github.com> | 2013-01-25 20:37:39 -0800 |
| commit | 4adb4815bf4be623f765b593e3a3d50ab9710aab (patch) | |
| tree | a50802fa1a16b1605880216e39add4cf46b0076a /tests-clar/network/remotes.c | |
| parent | 28db9f216da1da7955118a80c6eacaf7bf5dfac9 (diff) | |
| parent | a7f8065f8cd3d635264b3bfdb93cd0c22bb960a4 (diff) | |
| download | libgit2-4adb4815bf4be623f765b593e3a3d50ab9710aab.tar.gz | |
Merge pull request #1278 from sba1/cl-assert-equal-s
Use cl_assert_equal_s() instead of strcmp().
Diffstat (limited to 'tests-clar/network/remotes.c')
| -rw-r--r-- | tests-clar/network/remotes.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests-clar/network/remotes.c b/tests-clar/network/remotes.c index 85df03417..b138d8c10 100644 --- a/tests-clar/network/remotes.c +++ b/tests-clar/network/remotes.c @@ -258,9 +258,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"); } @@ -310,12 +310,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)); |
