File: splitindex.c

package info (click to toggle)
libgit2 1.1.0%2Bdfsg.1-4%2Bdeb11u2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 53,324 kB
  • sloc: ansic: 173,567; sh: 562; python: 351; php: 65; makefile: 50
file content (21 lines) | stat: -rw-r--r-- 464 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "clar_libgit2.h"
#include "index.h"

static git_repository *g_repo;

void test_index_splitindex__initialize(void)
{
	g_repo = cl_git_sandbox_init("splitindex");
}

void test_index_splitindex__cleanup(void)
{
	cl_git_sandbox_cleanup();
}

void test_index_splitindex__fail_on_open(void)
{
	git_index *idx;
	cl_git_fail_with(-1, git_repository_index(&idx, g_repo));
	cl_assert_equal_s(git_error_last()->message, "unsupported mandatory extension: 'link'");
}