]> git.proxmox.com Git - libgit2.git/blob - tests/index/splitindex.c
New upstream version 1.4.3+dfsg.1
[libgit2.git] / tests / index / splitindex.c
1 #include "clar_libgit2.h"
2 #include "index.h"
3
4 static git_repository *g_repo;
5
6 void test_index_splitindex__initialize(void)
7 {
8 g_repo = cl_git_sandbox_init("splitindex");
9 }
10
11 void test_index_splitindex__cleanup(void)
12 {
13 cl_git_sandbox_cleanup();
14 }
15
16 void test_index_splitindex__fail_on_open(void)
17 {
18 git_index *idx;
19 cl_git_fail_with(-1, git_repository_index(&idx, g_repo));
20 cl_assert_equal_s(git_error_last()->message, "unsupported mandatory extension: 'link'");
21 }