diff options
| author | Vicent Martà <tanoku@gmail.com> | 2012-05-02 16:57:16 -0700 |
|---|---|---|
| committer | Vicent Martà <tanoku@gmail.com> | 2012-05-02 16:57:16 -0700 |
| commit | b02bcd97f80beabc96cd1f861bfc3b5f7532ef8b (patch) | |
| tree | bd83ac195983092221f2606dd6dac9d11434fb11 /tests-clar/repo/discover.c | |
| parent | 17f1c9fb332d054285452313f0ec537dfde63d1c (diff) | |
| download | libgit2-b02bcd97f80beabc96cd1f861bfc3b5f7532ef8b.tar.gz | |
Boom
Diffstat (limited to 'tests-clar/repo/discover.c')
| -rw-r--r-- | tests-clar/repo/discover.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests-clar/repo/discover.c b/tests-clar/repo/discover.c index 2fbd55f87..6b17d6dba 100644 --- a/tests-clar/repo/discover.c +++ b/tests-clar/repo/discover.c @@ -38,7 +38,7 @@ static void write_file(const char *path, const char *content) git_file file; int error; - if (git_path_exists(path) == GIT_SUCCESS) { + if (git_path_exists(path)) { cl_git_pass(p_unlink(path)); } @@ -82,7 +82,7 @@ void test_repo_discover__0(void) append_ceiling_dir(&ceiling_dirs_buf, TEMP_REPO_FOLDER); ceiling_dirs = git_buf_cstr(&ceiling_dirs_buf); - cl_assert(git_repository_discover(repository_path, sizeof(repository_path), DISCOVER_FOLDER, 0, ceiling_dirs) == GIT_ENOTAREPO); + cl_git_fail(git_repository_discover(repository_path, sizeof(repository_path), DISCOVER_FOLDER, 0, ceiling_dirs)); cl_git_pass(git_repository_init(&repo, DISCOVER_FOLDER, 1)); cl_git_pass(git_repository_discover(repository_path, sizeof(repository_path), DISCOVER_FOLDER, 0, ceiling_dirs)); |
