summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2016-04-11 11:33:36 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2016-04-11 11:33:36 +0200
commit9bf157d2c971e25f3962f9525d86230e9586ba6b (patch)
tree89340748e8583c414cbc603c5ea5472b9df37b38
parent69723dd8d3b40f1e508d82ed0339839051abd19a (diff)
downloadlibgit2-9bf157d2c971e25f3962f9525d86230e9586ba6b.tar.gz
tests: re-enable strict object creation after refs suite
We were leaving strict object creation off in the cleanup instead of turning it off during the init, making the later tests run with it turned off.
-rw-r--r--tests/refs/create.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/refs/create.c b/tests/refs/create.c
index b96d0c90a..a802be05b 100644
--- a/tests/refs/create.c
+++ b/tests/refs/create.c
@@ -13,13 +13,14 @@ static git_repository *g_repo;
void test_refs_create__initialize(void)
{
g_repo = cl_git_sandbox_init("testrepo");
+ cl_git_pass(git_libgit2_opts(GIT_OPT_ENABLE_STRICT_OBJECT_CREATION, 0));
}
void test_refs_create__cleanup(void)
{
cl_git_sandbox_cleanup();
- cl_git_pass(git_libgit2_opts(GIT_OPT_ENABLE_STRICT_OBJECT_CREATION, 0));
+ cl_git_pass(git_libgit2_opts(GIT_OPT_ENABLE_STRICT_OBJECT_CREATION, 1));
}
void test_refs_create__symbolic(void)