summaryrefslogtreecommitdiff
path: root/tests/index
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-12-27 13:47:34 -0600
committerEdward Thomson <ethomson@edwardthomson.com>2019-01-22 22:30:35 +0000
commitf673e232afe22eb865cdc915e55a2df6493f0fbb (patch)
treee79e3e6fb1e1d78367679aea75e66c8141b4daa8 /tests/index
parent647dfdb42d06514a85c1499f1be88a32b8a4c24b (diff)
downloadlibgit2-f673e232afe22eb865cdc915e55a2df6493f0fbb.tar.gz
git_error: use new names in internal APIs and usage
Move to the `git_error` name in the internal API for error-related functions.
Diffstat (limited to 'tests/index')
-rw-r--r--tests/index/crlf.c4
-rw-r--r--tests/index/tests.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/index/crlf.c b/tests/index/crlf.c
index d90ea582f..7aa6be429 100644
--- a/tests/index/crlf.c
+++ b/tests/index/crlf.c
@@ -82,8 +82,8 @@ static int add_and_check_file(void *payload, git_buf *actual_path)
git_buf_rtrim(&expected_contents);
if (git_index_add_bypath(g_index, basename) == 0 ||
- giterr_last()->klass != GITERR_FILTER ||
- strcmp(expected_contents.ptr, giterr_last()->message) != 0)
+ git_error_last()->klass != GIT_ERROR_FILTER ||
+ strcmp(expected_contents.ptr, git_error_last()->message) != 0)
goto done;
} else {
cl_fail("unexpected index failure");
diff --git a/tests/index/tests.c b/tests/index/tests.c
index 49ef8b2cb..7c29ef389 100644
--- a/tests/index/tests.c
+++ b/tests/index/tests.c
@@ -849,8 +849,8 @@ void test_index_tests__elocked(void)
error = git_index_write(index);
cl_assert_equal_i(GIT_ELOCKED, error);
- err = giterr_last();
- cl_assert_equal_i(err->klass, GITERR_INDEX);
+ err = git_error_last();
+ cl_assert_equal_i(err->klass, GIT_ERROR_INDEX);
git_filebuf_cleanup(&file);
git_index_free(index);