summaryrefslogtreecommitdiff
path: root/tests/odb/backend
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/odb/backend
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/odb/backend')
-rw-r--r--tests/odb/backend/backend_helpers.c2
-rw-r--r--tests/odb/backend/nobackend.c2
-rw-r--r--tests/odb/backend/simple.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/odb/backend/backend_helpers.c b/tests/odb/backend/backend_helpers.c
index c0f4103f1..139d2fc72 100644
--- a/tests/odb/backend/backend_helpers.c
+++ b/tests/odb/backend/backend_helpers.c
@@ -139,7 +139,7 @@ int build_fake_backend(
fake_backend *backend;
backend = git__calloc(1, sizeof(fake_backend));
- GITERR_CHECK_ALLOC(backend);
+ GIT_ERROR_CHECK_ALLOC(backend);
backend->parent.version = GIT_ODB_BACKEND_VERSION;
diff --git a/tests/odb/backend/nobackend.c b/tests/odb/backend/nobackend.c
index cd727b7c4..7484d423b 100644
--- a/tests/odb/backend/nobackend.c
+++ b/tests/odb/backend/nobackend.c
@@ -39,7 +39,7 @@ void test_odb_backend_nobackend__write_fails_gracefully(void)
git_repository_odb(&odb, _repo);
cl_git_fail(git_odb_write(&id, odb, "Hello world!\n", 13, GIT_OBJECT_BLOB));
- err = giterr_last();
+ err = git_error_last();
cl_assert_equal_s(err->message, "cannot write object - unsupported in the loaded odb backends");
git_odb_free(odb);
diff --git a/tests/odb/backend/simple.c b/tests/odb/backend/simple.c
index f4d29cc76..484dcba5a 100644
--- a/tests/odb/backend/simple.c
+++ b/tests/odb/backend/simple.c
@@ -246,5 +246,5 @@ void test_odb_backend_simple__null_oid_is_ignored(void)
cl_assert(!git_odb_exists(_odb, &null_oid));
cl_git_fail_with(GIT_ENOTFOUND, git_odb_read(&obj, _odb, &null_oid));
- cl_assert(giterr_last() && strstr(giterr_last()->message, "null OID"));
+ cl_assert(git_error_last() && strstr(git_error_last()->message, "null OID"));
}