 98300c8157
			
		
	
	98300c8157
	
	
	
		
			
			Mark some tests that match "*read-tree*" as passing when git is compiled with SANITIZE=leak. They'll now be listed as running under the "GIT_TEST_PASSING_SANITIZE_LEAK=true" test mode (the "linux-leaks" CI target). We still have around half the tests that match "*read-tree*" failing, but let's whitelist those that don't. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
		
			
				
	
	
		
			30 lines
		
	
	
		
			541 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			541 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| test_description='test read-tree into a fresh index file'
 | |
| 
 | |
| GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
 | |
| export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 | |
| 
 | |
| TEST_PASSES_SANITIZE_LEAK=true
 | |
| . ./test-lib.sh
 | |
| 
 | |
| test_expect_success setup '
 | |
| 	echo one >a &&
 | |
| 	git add a &&
 | |
| 	git commit -m initial
 | |
| '
 | |
| 
 | |
| test_expect_success 'non-existent index file' '
 | |
| 	rm -f new-index &&
 | |
| 	GIT_INDEX_FILE=new-index git read-tree main
 | |
| '
 | |
| 
 | |
| test_expect_success 'empty index file' '
 | |
| 	rm -f new-index &&
 | |
| 	> new-index &&
 | |
| 	GIT_INDEX_FILE=new-index git read-tree main
 | |
| '
 | |
| 
 | |
| test_done
 | |
| 
 |