diff options
| author | Vicent Martà <tanoku@gmail.com> | 2012-05-02 16:14:30 -0700 |
|---|---|---|
| committer | Vicent Martà <tanoku@gmail.com> | 2012-05-02 16:14:30 -0700 |
| commit | 946a6dc4e693280e3210fbad7e4cec03c7b0b169 (patch) | |
| tree | ffb89db5e092afdafe5ad922af9a5808351778c2 /tests-clar/repo/discover.c | |
| parent | 40879facad0337d954d4904e212af3b36cdb9465 (diff) | |
| download | libgit2-946a6dc4e693280e3210fbad7e4cec03c7b0b169.tar.gz | |
Update test suite
Diffstat (limited to 'tests-clar/repo/discover.c')
| -rw-r--r-- | tests-clar/repo/discover.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests-clar/repo/discover.c b/tests-clar/repo/discover.c index 072e3265e..2fbd55f87 100644 --- a/tests-clar/repo/discover.c +++ b/tests-clar/repo/discover.c @@ -30,7 +30,7 @@ static void ensure_repository_discover(const char *start_path, char found_path[GIT_PATH_MAX]; cl_git_pass(git_repository_discover(found_path, sizeof(found_path), start_path, 0, ceiling_dirs)); //across_fs is always 0 as we can't automate the filesystem change tests - cl_assert_strequal(found_path, expected_path); + cl_assert_equal_s(found_path, expected_path); } static void write_file(const char *path, const char *content) @@ -60,10 +60,11 @@ static void append_ceiling_dir(git_buf *ceiling_dirs, const char *path) if (ceiling_dirs->size > 0) git_buf_puts(ceiling_dirs, ceiling_separator); + git_buf_puts(ceiling_dirs, pretty_path.ptr); - - git_buf_free(&pretty_path); - cl_git_pass(git_buf_lasterror(ceiling_dirs)); + + git_buf_free(&pretty_path); + cl_assert(git_buf_oom(ceiling_dirs) == 0); } void test_repo_discover__0(void) |
