summaryrefslogtreecommitdiff
path: root/tests-clar/repo/getters.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-04-21 19:26:35 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2013-04-22 17:12:11 +0200
commit05b179648aca91799274afbd03d40f31783547ac (patch)
tree6eb7f09499286d115754c5c3e802053bbdcce0e6 /tests-clar/repo/getters.c
parentd08dd728a80eb993d80ec30d8c9f9025664c8990 (diff)
downloadlibgit2-05b179648aca91799274afbd03d40f31783547ac.tar.gz
Make refcounting atomic
Diffstat (limited to 'tests-clar/repo/getters.c')
-rw-r--r--tests-clar/repo/getters.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests-clar/repo/getters.c b/tests-clar/repo/getters.c
index b372f5b70..b8ede126c 100644
--- a/tests-clar/repo/getters.c
+++ b/tests-clar/repo/getters.c
@@ -31,10 +31,10 @@ void test_repo_getters__retrieving_the_odb_honors_the_refcount(void)
cl_git_pass(git_repository_open(&repo, cl_fixture("testrepo.git")));
cl_git_pass(git_repository_odb(&odb, repo));
- cl_assert(((git_refcount *)odb)->refcount == 2);
+ cl_assert(((git_refcount *)odb)->refcount.val == 2);
git_repository_free(repo);
- cl_assert(((git_refcount *)odb)->refcount == 1);
+ cl_assert(((git_refcount *)odb)->refcount.val == 1);
git_odb_free(odb);
}