mirror of
				https://git.proxmox.com/git/libgit2
				synced 2025-11-04 07:09:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			464 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			464 B
		
	
	
	
		
			C
		
	
	
	
	
	
#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'");
 | 
						|
}
 |