diff options
| author | Patrick Steinhardt <ps@pks.im> | 2018-02-08 11:14:48 +0000 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2018-06-10 19:34:37 +0200 |
| commit | ecf4f33a4e327a91496f72816f9f02d923e5af05 (patch) | |
| tree | bb8eccc9ab0dc8f36a702c8a15ad5ae92429ee07 /tests/status | |
| parent | 56ffdfc61e37b9e7634c7c73b05d84355bea61cd (diff) | |
| download | libgit2-ecf4f33a4e327a91496f72816f9f02d923e5af05.tar.gz | |
Convert usage of `git_buf_free` to new `git_buf_dispose`
Diffstat (limited to 'tests/status')
| -rw-r--r-- | tests/status/ignore.c | 2 | ||||
| -rw-r--r-- | tests/status/renames.c | 4 | ||||
| -rw-r--r-- | tests/status/worktree.c | 16 |
3 files changed, 11 insertions, 11 deletions
diff --git a/tests/status/ignore.c b/tests/status/ignore.c index dc58e8b45..ed6df9528 100644 --- a/tests/status/ignore.c +++ b/tests/status/ignore.c @@ -601,7 +601,7 @@ void test_status_ignore__filenames_with_special_prefixes_do_not_interfere_with_s cl_assert(st.status == GIT_STATUS_WT_NEW); cl_git_sandbox_cleanup(); - git_buf_free(&file); + git_buf_dispose(&file); } } diff --git a/tests/status/renames.c b/tests/status/renames.c index ae32d2ee0..445995264 100644 --- a/tests/status/renames.c +++ b/tests/status/renames.c @@ -35,8 +35,8 @@ static void _rename_helper( if (extra) cl_git_append2file(newpath.ptr, extra); - git_buf_free(&oldpath); - git_buf_free(&newpath); + git_buf_dispose(&oldpath); + git_buf_dispose(&newpath); } #define rename_file(R,O,N) _rename_helper((R), (O), (N), NULL) diff --git a/tests/status/worktree.c b/tests/status/worktree.c index c6b18c166..bb9f8ec97 100644 --- a/tests/status/worktree.c +++ b/tests/status/worktree.c @@ -127,7 +127,7 @@ void test_status_worktree__purged_worktree(void) /* first purge the contents of the worktree */ cl_git_pass(git_buf_sets(&workdir, git_repository_workdir(repo))); cl_git_pass(git_path_direach(&workdir, 0, remove_file_cb, NULL)); - git_buf_free(&workdir); + git_buf_dispose(&workdir); /* now get status */ memset(&counts, 0x0, sizeof(status_entry_counts)); @@ -378,7 +378,7 @@ void test_status_worktree__issue_592(void) cl_git_pass(git_status_foreach(repo, cb_status__check_592, "l.txt")); - git_buf_free(&path); + git_buf_dispose(&path); } void test_status_worktree__issue_592_2(void) @@ -393,7 +393,7 @@ void test_status_worktree__issue_592_2(void) cl_git_pass(git_status_foreach(repo, cb_status__check_592, "c/a.txt")); - git_buf_free(&path); + git_buf_dispose(&path); } void test_status_worktree__issue_592_3(void) @@ -409,7 +409,7 @@ void test_status_worktree__issue_592_3(void) cl_git_pass(git_status_foreach(repo, cb_status__check_592, "c/a.txt")); - git_buf_free(&path); + git_buf_dispose(&path); } void test_status_worktree__issue_592_4(void) @@ -424,7 +424,7 @@ void test_status_worktree__issue_592_4(void) cl_git_pass(git_status_foreach(repo, cb_status__check_592, "t/b.txt")); - git_buf_free(&path); + git_buf_dispose(&path); } void test_status_worktree__issue_592_5(void) @@ -440,7 +440,7 @@ void test_status_worktree__issue_592_5(void) cl_git_pass(git_status_foreach(repo, cb_status__check_592, NULL)); - git_buf_free(&path); + git_buf_dispose(&path); } void test_status_worktree__issue_592_ignores_0(void) @@ -782,8 +782,8 @@ static void assert_ignore_case( cl_assert_equal_i(expected_camel_cased_file_status, status); git_repository_free(repo2); - git_buf_free(&lower_case_path); - git_buf_free(&camel_case_path); + git_buf_dispose(&lower_case_path); + git_buf_dispose(&camel_case_path); } void test_status_worktree__file_status_honors_core_ignorecase_true(void) |
